rodead
Active Member
- Reaction score
- 42
i made a slide system but i am having a few problems with it! :S
some people can walk on ice instead of sliding wich is a very big bug any idea why? and how to fix that?
some people can walk on ice instead of sliding wich is a very big bug any idea why? and how to fix that?
Code:
Slide
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Set Sliders = (Units of type Ghoul)
Unit Group - Pick every unit in Sliders and do (Actions)
Loop - Actions
Set Slide_Point = (Position of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at Slide_Point) Equal to Icecrown Glacier - Dark Ice
Then - Actions
Set tmp_position = (Slide_Point offset by 3.25 towards (Facing of (Picked unit)) degrees)
Unit - Move (Picked unit) instantly to tmp_position
Custom script: call RemoveLocation( udg_tmp_position )
Else - Actions
Custom script: call RemoveLocation( udg_Slide_Point )
Custom script: call DestroyGroup (udg_Sliders)