- Reaction score
- 65
This trigger lags. My quess is that there is a memory leak. Could someone fix it?
Code:
Time - Every 0.05 seconds of game time
Set Tanks = (Units of type Tank Crew)
Unit Group - Pick every unit in Tanks and do (Actions)
Loop - Actions
Set TankMovePoint = (Position of (Picked unit))
Set TankMovePoint2 = (TankMovePoint offset by 33.00 towards (Facing of (Picked unit)) degrees)
Unit - Order (Picked unit) to Move To TankMovePoint2
Custom script: call RemoveLocation (udg_TankMovePoint)
Custom script: call RemoveLocation (udg_TankMovePoint2)
Custom script: call DestroyGroup (udg_Tanks)