Help Plz! Moving with Offset

jpres

New Member
Reaction score
15
Code:
Level 3 First Issue Order
    Events
        Map initialization
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in 3 1 <gen>) and do (Unit - Order (Picked unit) to Move To ((Position of (Picked unit)) offset by (0.00, 1400.00)))

Code:
Level 3 Teleport Back
    Events
        Unit - A unit enters 3 2 <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to Player 12 (Brown)
    Actions
        Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by (0.00, -1400.00))
Code:
Level 3 ReOrder After Teleport
    Events
        Unit - A unit enters 3 1 <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to Player 12 (Brown)
    Actions
        Unit - Order (Triggering unit) to Move To ((Position of (Triggering unit)) offset by (0.00, 1400.00))

Anyone know how to fix this? I'm trying to make it so all these units in this location are moving up and then when they hit a region they move down back to the beginning, but they have different X axis so that's why i'm doing it like this.

Any ideas?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Did you try using Point with Polar Offset? That lets you define degrees of offset, which might be better.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top