I feel like this is sort of a noob-question, but I'm clueless on how to solve it.
I've discovered the "Custom script: call SetUnitAnimationByIndex(unit, index)", but can't really figure out how to use it with the "SportlerDummy" Array, but even if I change it to "SportlerDummy1" without array (which means more work for me), I still can't figure out what the hell the "index" is.
I got that it is some sort of Integer, but the trigger gets an error when I fill in one of my integer variables (like ... "call SetUnitAnimationByIndex(SportlerDummy1, AnimationInteger). It also doesn't work, when I just fill in a number ("call SetUnitAnimationByIndex(SportlerDummy1, 3).
What am I doing wrong and how exactly does the "index" here work?
-
Jump Timer Player 1
-
Events
-
Time - JumpTimerPlayer1 expires
-
-
Conditions
-
Actions
-
Unit - Pause on Sportler1
-
Unit - Hide Sportler1
-
Unit - Create 1 Sportler (flying) for Player 1 (Red) at (Position of Sportler1) facing (Facing of Sportler1) degrees
-
Set SportlerDummy[1] = (Last created unit)
-
Animation - Play SportlerDummy[1]'s stand 3 animation
-
Selection - Select SportlerDummy[1] for Player 1 (Red)
-
Trigger - Turn on Jump Player 1 up <gen>
-
Trigger - Turn on Jump Player 1 forw <gen>
-
-
I've discovered the "Custom script: call SetUnitAnimationByIndex(unit, index)", but can't really figure out how to use it with the "SportlerDummy" Array, but even if I change it to "SportlerDummy1" without array (which means more work for me), I still can't figure out what the hell the "index" is.
I got that it is some sort of Integer, but the trigger gets an error when I fill in one of my integer variables (like ... "call SetUnitAnimationByIndex(SportlerDummy1, AnimationInteger). It also doesn't work, when I just fill in a number ("call SetUnitAnimationByIndex(SportlerDummy1, 3).
What am I doing wrong and how exactly does the "index" here work?