Regga-Voska
New Member
- Reaction score
- 0
Does this trigger leak? And why? EXPLAIN PLEASE :thup:
Trigger:
- Movments
- Events
- Time - Every 0.05 seconds of game time
- Conditions
- Actions
- For each (Integer A) from 1 to 4, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Game[(Integer A)] Equal to True
- Then - Actions
- Set Facing[(Integer A)] = (Facing of PlayerUnit[(Integer A)])
- Custom script: set udg_X[GetForLoopIndexA()] = GetUnitX(udg_PlayerUnit[GetForLoopIndexA()]) + udg_Move[GetForLoopIndexA()] * Cos(udg_Facing[GetForLoopIndexA()] * bj_DEGTORAD)
- Custom script: set udg_Y[GetForLoopIndexA()] = GetUnitY(udg_PlayerUnit[GetForLoopIndexA()]) + udg_Move[GetForLoopIndexA()] * Sin(udg_Facing[GetForLoopIndexA()] * bj_DEGTORAD)
- Set Temp_Point = (Point(X[(Integer A)], Y[(Integer A)]))
- Unit - Move PlayerUnit[(Integer A)] instantly to Temp_Point
- Custom script: call RemoveLocation (udg_Temp_Point)
- Camera - Set (Owner of PlayerUnit[(Integer A)])'s camera Rotation to (Facing of PlayerUnit[(Integer A)]) over 0.10 seconds
- Camera - Lock camera target for (Owner of PlayerUnit[(Integer A)]) to PlayerUnit[(Integer A)], offset by (0.00, 0.00) using The unit's rotation
- Unit - Make PlayerUnit[(Integer A)] face (Facing[(Integer A)] + Rotation[(Integer A)]) over 0.00 seconds
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer A) from 1 to 4, do (Actions)
- Events