• 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.

[Trigger] Need help with a "pause" thing

Status
Not open for further replies.
Level 8
Joined
Aug 4, 2008
Messages
279
Well, i need to make a unit walking, then a player receive the control of it, how do I do to stop the unit, but at the same time, be able to use any of his spells.

Its not a simple pause, but removing all his movement speed, to make it *unmoveable*, and at the same time, be able to cast some spell.

I tried to set the speed 0, but then, we wont be walking to the player.
In the triggers, tried to change the speed to 0, but he still could move.

Please help me~!
 
Level 11
Joined
Oct 20, 2007
Messages
342
that not very prefect, it will cause slow a unit until not moveable,
like getting two different slow 75% the unit won't move anymore,

so want to solve the problem is create a dummy unit to cast ensnare on the unit which don't want move.
  • Actions
    • Set Temp_Point1 = (Position of (Target unit of ability being cast))
    • Unit - Create 1 Dummy Unit for (Triggering player) at Temp_Point1 facing Default building facing degrees
    • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
    • Unit - Add Ensnare to (Last created unit)
    • Unit - Order (Last created unit) to Orc Raider - Ensnare (Triggering unit)
    • Custom script: call RemoveLocation (udg_Temp_Point1)
  • --------- * do not forget remove ensnare's "Techtree - Requirements" at object editor. -------
to enable it movement by
  • Unit - Remove Ensnare (Ground) buff from (Triggering unit)
or a constant time is need just edit duration of ensnare object editor


If don't know how to make the dummy can check the forum by seaching
 
Status
Not open for further replies.
Top