• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Stop a unit from movement (without pause)

Status
Not open for further replies.
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".
 
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.
 
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:
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.
Back
Top