- Joined
- Jul 29, 2006
- Messages
- 1
I'm trying to make an escape map. I created this trigger to make a unit slide and be controlled on the snow. There is a problem though, you can't control it very well for some odd reason.
Can someone help me?
If you need me to explain the trigger a little more just ask. It's kind of like maze of sliding bunnies.
Can someone help me?
Code:
Snow Sliding
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
OnSnow[(Integer A)] Equal to True
(PlayerUnit[(Integer A)] is alive) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Playable map area) contains ((Position of PlayerUnit[(Integer A)]) offset by 5.00 towards (Facing of PlayerUnit[(Integer A)]) degrees)) Equal to True
Then - Actions
Custom script: call SetUnitX( udg_PlayerUnit[GetForLoopIndexA()] , GetLocationX( PolarProjectionBJ(GetUnitLoc(udg_PlayerUnit[GetForLoopIndexA()]), udg_SlideSpeed[GetForLoopIndexA()], GetUnitFacing(udg_PlayerUnit[GetForLoopIndexA()])) ) )
Custom script: call SetUnitY( udg_PlayerUnit[GetForLoopIndexA()] , GetLocationY( PolarProjectionBJ(GetUnitLoc(udg_PlayerUnit[GetForLoopIndexA()]), udg_SlideSpeed[GetForLoopIndexA()], GetUnitFacing(udg_PlayerUnit[GetForLoopIndexA()])) ) )
Else - Actions
Else - Actions
If you need me to explain the trigger a little more just ask. It's kind of like maze of sliding bunnies.