How to move a spawned unit?

fjerre

New Member
Reaction score
0
I spawned a unit at a certain region and after it spawned i want it to wait 5 sec then start running towards a point, cant come up with a trigger.

Used theese
Code:
Unit - Create 1 Footman for Player 12 (Brown) at (Center of Region 043 <gen>) facing 0.00 degrees
Wait 5.00 seconds

Tryed this but didnt work
Code:
Unit - Set Rally-Point for (Last created unit) to (Point((X of (Position of (Triggering unit))), (Max Y of (Playable map area))))

And now what?

Thanks in advance:)
 

johnnymra

New Member
Reaction score
14
The easiest way is just by using the trigger action "Unit - Order (last created unit) to Move [or Attack-Move depending on what you wish] At (center of (target region))"
Well of course you have to replace some of the words I've put with the names of the the region... action etc... and in case you spawn more units at a time i recommend using variables in order to make the trigger remember which unit goes when and where.

Edit: by the way you don't need the rally point thing :D
 
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