• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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