Trigger : Moving unit

rDs_RaVeN

New Member
Reaction score
14
I want to move a unit behind another unit using trigger if anyone knows please help

thx
 

vypur85

Hibernate
Reaction score
803
Code:
Event
Condition
Actions
 Unit - Move (Triggering unit) to ((Position of (Target unit ability being cast) offset by 100.00 facing [B](Facing of (Target unit ability being cast) + 180.00)[/B])

The important part is the bolded part. Basically, by adding 180, you will always be at the back of the target unit.
 

Ayanami

칼리
Reaction score
288
The actions will look something like this.

Trigger:
  • Actions
    • Set Unit = [Your unit, not the moved one]
    • Set TempPoint = (Position of Unit)
    • Set Offset = (TempPoint offset by 75.00 towards ((Facing of Unit) - 180.00) degrees)
    • Unit - Move [Your moving unit] instantly to Offset
    • Custom script: call RemoveLocation(udg_TempPoint)
    • Custom script: call RemoveLocation(udg_Offset)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top