• 🏆 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!

Stop a unit from movement (without pause)

Status
Not open for further replies.
Level 12
Joined
Mar 10, 2008
Messages
869
Without WE:
  • Unit - Order unit to Stop
("Issue order with no target", or something)

When you want him to move again, use the "move"-command...
Didn't want that. I was using it for sliding on uncontrollable ice and I had tried that before but it still didn't work.

Setting the movement speed, I don't think, would work either. It's more of a "trying to stop units from being able to turn when on certain ice".
 
Level 11
Joined
Oct 20, 2007
Messages
342
why got no ppl suggest this...
make a dummy unit to cast ensnare on the target...done.

(i'm not very understand what u want, but if i'm not wrong)
when on uncontrollable ice, u don't want the unit to change facing but able to cast skill??
i have no idea, but i have to suggest
let the unit able to change facing but change your trigger.
save the initial facing of the unit into a variable,
and every x seconds move the unit of offset by the initial facing that saved initially.
 
Level 13
Joined
Mar 4, 2009
Messages
1,156
Do this it work perfectly for me :grin:

  • SAVE UNIT AND WAIT
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
    • Conditions
    • (Your conditions...)
    • Actions
      • Set ORDERED_UNIT = (Ordered unit)
      • Countdown Timer - Start TIMER as a One-shot timer that will expire in 0.00 seconds
  • ORDER SAVED UNIT TO STOP
    • Events
      • Time - TIMER expires
    • Conditions
    • Actions
      • Unit - Order ORDERED_UNIT to Stop
making it without timer expires is to fast...and can cause WarCraft crashing
 
Last edited:
Level 12
Joined
Mar 10, 2008
Messages
869
I already fixed it...
Don't worry, I fixed it.

JASS:
    if(t==udg_Slide2)then
        call SetUnitTurnSpeedBJ((u), 0.0 )
    else
        call SetUnitTurnSpeedBJ((u), 0.5 )
    endif
I added that to the sliding system and now the units can't turn.
t is:
JASS:
local integer t=GetTerrainType(x,y)
u is:
JASS:
local unit u=GetEnumUnit()
Try reading all the other posts before you post.
 
Status
Not open for further replies.
Top