Hi this is an example of what i need to achive. I could try myself but my jngp is crashing because of this trigger.
I just need to move a unit with polar offset everty 0.03 a little bit further. But with set unit x and y because i dont want that the unit forgets the orders.
I just need to move a unit with polar offset everty 0.03 a little bit further. But with set unit x and y because i dont want that the unit forgets the orders.
Code:
Untitled Trigger 001
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Set u = (Picked unit)
Custom script: call SetUnitX(GetUnitX(udg_u) * Cos(Angle * (3.14159/180.0)))
Custom script: call SetUnitY(GetUnitY(udg_u) * Sin(Angle * (3.14159/180.0)))