HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attack animation Question

04-26-2006, 02:36 PM#1
Hemlock
I made a trigger that spawns a unit every amount of time, after he is spawned I give him a name tag with a variable

Trigger:
Set DistanceUnit2[Dnumber] = (Last created unit)

Following to its spawn I want to display the attack animation of the unit, I used a custom call since I can't display the animation through the GUI.
Trigger:
Custom script: call SetUnitAnimationByIndex (udg_DistanceUnit2[Dnumber], 6)

now Am I not well know with custom scripts, but the script is giving me an error, so I was wondering if someone could help me out.
04-26-2006, 02:47 PM#2
MaD[Lion]
the problem i see is the varibale Dnumber.

It should be like this:
Trigger:
Custom script: call SetUnitAnimationByIndex (udg_DistanceUnit2[udg_Dnumber], 6)
04-26-2006, 03:04 PM#3
Hemlock
that was quite obvious, Thank you Mad[lion]