- Joined
- Oct 15, 2008
- Messages
- 83
I want a specific animation to play and
after looking around the forums quite a bit this line is thrown around alot
Custom script: call SetUnitAnimationByIndex(udg_unit, udg_integer)
And every variation I have tried from it it just gives error and disables the trigger whenever I start/save the map.
So let's say I create one unit in a fresh testmap and call him "Unit" this will be the first unit in the map so what I replace "udg_unit" with is "Unit 0000", right? and the integer I can figure out myself since I am using the villager with 255 animations.
So could anyone give me an example of what they can put in this custom script that doesn't cause any errors? Like I just need one example of someone using a unit and I could probably figure out what is wrong. Thx for reading.
Custom script: call SetUnitAnimationByIndex(udg_unit, udg_integer)
after looking around the forums quite a bit this line is thrown around alot
Custom script: call SetUnitAnimationByIndex(udg_unit, udg_integer)
And every variation I have tried from it it just gives error and disables the trigger whenever I start/save the map.
So let's say I create one unit in a fresh testmap and call him "Unit" this will be the first unit in the map so what I replace "udg_unit" with is "Unit 0000", right? and the integer I can figure out myself since I am using the villager with 255 animations.
So could anyone give me an example of what they can put in this custom script that doesn't cause any errors? Like I just need one example of someone using a unit and I could probably figure out what is wrong. Thx for reading.
Custom script: call SetUnitAnimationByIndex(udg_unit, udg_integer)