• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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