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

Walking?..

Status
Not open for further replies.
Level 5
Joined
Mar 24, 2008
Messages
98
I used a trigger, moving the unit to the target... I used the action ...
  • unit - issue order unit to move to unit
,. when i tried.. My unit just stand in his own place.. DAMN!! How do I make it walk?:sad: ,., Do sum of u guys know how?m,,.. :eekani:
 
Level 5
Joined
Mar 24, 2008
Messages
98
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to skill
  • Actions
    • Set mover[1] = (Triggering unit)
    • Set mover[2] = (Target unit of ability being cast)
    • Unit - Pause mover[1]
    • Unit - Pause mover[2]
    • Unit - Order mover[1] to Move To (Position of mover[2])
    • Wait 2.00 seconds
    • Animation - Play mover[1]'s attack animation
    • Animation - Play mover[2]'s death animation
    • If ((Level of Skill for mover[1]) Equal to 1) then do (Unit - Cause mover[1] to damage mover[2], dealing 0.00 damage of attack type Hero and damage type Normal) else do (Do nothing)
    • Unit - Unpause mover[1]
    • Unit - Unpause mover[2]
So? , It doesnt move...
 
thats because you pause it. Paused units don't do actions.

Edit: i would not set a ''wait 2.00 seconds'' in the middle in the trigger, since that would make the spell unusable if more than 1 units casts the spell within 2.00 seconds.

  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to skill
  • Actions
    • Set mover[1] = (Triggering unit)
    • Set mover[2] = (Target unit of ability being cast)
    • Set loc to (position of Mover[2])
    • Unit - Order mover[1] to Move To (loc)
    • Wait 2.00 seconds
    • Animation - Play mover[1]'s attack animation
    • Animation - Play mover[2]'s death animation
    • If ((Level of Skill for mover[1]) Equal to 1) then do (Unit - Cause mover[1] to damage mover[2], dealing 0.00 damage of attack type Hero and damage type Normal) else do (Do nothing)
    • Custom script: call RemoveLocation(udg_loc)
loc is a point variable
i did not remove the wait action in this, since thats optional.

the
  • Custom script: call RemoveLocation(udg_loc)
removes the lag caused by ordering a unit to a point.
 
Last edited:
Level 5
Joined
Mar 24, 2008
Messages
98
thats because you pause it. Paused units don't do actions.

Edit: i would not set a ''wait 2.00 seconds'' in the middle in the trigger, since that would make the spell unusable if more than 1 units casts the spell within 2.00 seconds.

  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to skill
  • Actions
    • Set mover[1] = (Triggering unit)
    • Set mover[2] = (Target unit of ability being cast)
    • Set loc to (position of Mover[2])
    • Unit - Order mover[1] to Move To (loc)
    • Wait 2.00 seconds
    • Animation - Play mover[1]'s attack animation
    • Animation - Play mover[2]'s death animation
    • If ((Level of Skill for mover[1]) Equal to 1) then do (Unit - Cause mover[1] to damage mover[2], dealing 0.00 damage of attack type Hero and damage type Normal) else do (Do nothing)
    • Custom script: call RemoveLocation(udg_loc)
loc is a point variable
i did not remove the wait action in this since thats optional.

the
  • Custom script: call RemoveLocation(udg_loc)
removes the lag caused by odering a unit to a point.


Ah,. I get it now.,. Thanks men, U helped me a lOt ^^ .,.
 
Status
Not open for further replies.
Top