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

Play animation for 0.01 second?

Status
Not open for further replies.
Level 15
Joined
Aug 18, 2007
Messages
1,390
Hi all.
Im working on a map, where you control a unit with arrowkeys. The movement works fine, but i would like my guy to play his walk animation when hes moving. I got the triggers, but for some reason, "Animation - Play (unit)s (walk) animation" doesn't work. Or, it doesm but the animation stops like 0.01 second after its started! Any clues? Im using an "Move unit" trigger every 0.03 for moving the unit.
 
Level 7
Joined
Jul 12, 2008
Messages
295
Maybe because your unit is walking in near distances... Give triggers so we can see plz
 
Level 15
Joined
Aug 18, 2007
Messages
1,390
I hope it works, but i have problem. How do i set (Interger A) into the unit? My Unit is Uni_Rifleman[Interger A]. Somehow (Interger a) dont work :/

Btw, i also need a script that stops its walk animation. Else i will just find the index the "Stand"

Tried:

call SetUnitAnimationByIndex(udg_Uni_Rifleman[Interger A],1)
call SetUnitAnimationByIndex(udg_Uni_Rifleman[Interger A], 1)
call SetUnitAnimationByIndex(udg_Uni_Rifleman[IntergerA],1)
call SetUnitAnimationByIndex(udg_Uni_Rifleman[IntergerA], 1)
 
Level 3
Joined
Jul 8, 2006
Messages
26
If by "necropost" you mean "revive thread" then, well this thread hasn't been dead for THAT long. Sure, a couple of months, but that's nothing.

Anyway, yeah, I tried different numbers, and they work, but now I have another problem.
You see, I'm making this pretty cool shadow following effect a lá Protoss High Templar, but with a Demon Hunter, and while I got his following to work thanks to this thread, I'm also trying to make a jump spell for him. I succeeded by replacing him with yet another dummy unit and hiding him, but the following units just won't adjust their height!
 
Level 3
Joined
Jul 8, 2006
Messages
26
I tried that, but it didn't work. However, I got it pretty much working now. The trick was to put the height adjustment action before the movement action for some reason.

Anyway the following units already had flying as movement type, so crow form wasn't needed.
 
Status
Not open for further replies.
Top