I am creating a unit at a region, then ordering it to patrol to the center of another region. The unit moves to the other region, stands there for a few seconds, then moves back. Then he stops. Is this code incorrect?
Code:
Set L = (Center of Patrol1 <gen>)
Set L2 = (Center of Patrol1 Dest <gen>)
Unit - Create 1 Big Furry Monster for Neutral Hostile at L facing 90.00 degrees
Unit - Order (Last created unit) to Patrol To L2
Custom script: call RemoveLocation(udg_L2)
Custom script: call RemoveLocation(udg_L)