How to make a unit slide like in Polar Escape?

Status
Not open for further replies.
(crappy GUI version, but u wouldnt understand the JASS one)

Events
Every 0.01 seconds of game time
Conditions
(none)
Actions
Custom Script - set bj_wantDestroyGroup = true
Unit Group - Pick Every Unit of Type xxx and do actions
loop - actions
set a = position of picked unit
if Terrain Type at position of picked unit equal to (your ice) then
set b = Polar offset of a by (1-5, depends on speed) towards facing of picked unit
Unit - Move Picked Unit to b
Custom Script - call RemoveLocation( udg_b )
(end of the if/then)
Custom Script - call RemoveLocation( udg_a )
(end of unit group loop)
-----------------------------------------------------

there you are!
 
Status
Not open for further replies.
Back
Top