• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to make a unit slide like in Polar Escape?

Status
Not open for further replies.
Level 40
Joined
Dec 14, 2005
Messages
10,532
(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.
Top