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

Reverse walking for units

Status
Not open for further replies.
Level 3
Joined
Jul 3, 2009
Messages
31
can someone teach me how to make a unit walk in reverse when pressing the down arrow key? i figured out the other directions already. if possible not jass please. :p thanks!
 
Level 3
Joined
Jul 3, 2009
Messages
31
well i wanted something that will make it look like he's walking in reverse. like the moonwalk. :p i dont want it to face the direction. any ideas? =/
 
Level 12
Joined
Mar 26, 2005
Messages
790
try to play little bit with pitch angle and the second angle thing within object editor.

then you will to make the exactly same unit, but with different angles, and of course it will go in reverse. Then make trigger which will replace the units.
 
Level 3
Joined
Jul 3, 2009
Messages
31
ok thanks guys! got everything solved now except for the reverse animation. Toofless, is there an easier way to do it? because those functions are too complicated for me. T_T im still a noob in map designing. Well, at least tell me what i need to have before i use those functions. :p thanks alot im making good progress now. xD
 
Level 11
Joined
Dec 8, 2006
Messages
334
  • Events
    • Time - Every 0.0X seconds of game time
  • Conditions
  • Actions
    • Set TempPoint1 = (Position of <Your Unit>)
    • Set TempPoint2 = ( TempPoint1 offset by <Offset> towards ((Facing of <Your Unit>) - 180.00) degrees)
    • Custom script: call SetUnitAnimationByIndex(udg_<Your Unit>, <It's Walk Animation (type number in here)>)
    • Unit - Move <Your Unit> instantly to TempPoint2
    • Custom script: call RemoveLocation(udg_TempPoint1)
    • Custom script: call RemoveLocation(udg_TempPoint2)
-working
 
Level 3
Joined
Jul 3, 2009
Messages
31
  • Events
    • Time - Every 0.0X seconds of game time
  • Conditions
  • Actions
    • Set TempPoint1 = (Position of <Your Unit>)
    • Set TempPoint2 = ( TempPoint1 offset by <Offset> towards ((Facing of <Your Unit>) - 180.00) degrees)
    • Custom script: call SetUnitAnimationByIndex(udg_<Your Unit>, <It's Walk Animation (type number in here)>)
    • Unit - Move <Your Unit> instantly to TempPoint2
    • Custom script: call RemoveLocation(udg_TempPoint1)
    • Custom script: call RemoveLocation(udg_TempPoint2)
-working


For the "Custom script: call SetUnitAnimationByIndex(udg_<Your Unit>, <It's Walk Animation (type number in here)>)",
I put Custom script: call SetUnitAnimationByIndex(udg_RedHero, Walk(1))
RedHero is the variable for the unit. Its saying expected name of something. what did i do wrong? =/

[EDIT]
Ok i got it now. ur supposed to put the number only. xD Thanks man!this helped me alot. its fixed now! :p even though it looks a little weird the animation.. still! its still great! thanks alot! :p
 
Last edited:
Status
Not open for further replies.
Top