thanks for your answer, Terox. i understand what you wrote but there's a little problem.
There's no line activating the animation in my script because the player has to do it himself, from the action menu. so first i thought of checking when the action is performed, like it exists in this script which is a light script from the Baracken addon from Mapfact:
_Schalter = _this select 0
#Runde
@ (_Schalter animationPhase "Component02" >= 0.01) or (not alive _Schalter)
(object 53492) switchlight "off"
(object 4885) switchlight "off"
(object 8192) switchlight "off"
? (not alive _Schalter):exit
@ _Schalter animationPhase "Component02" < 0.5 or (not alive _Schalter)
? (not alive _Schalter):exit
(object 53492) switchlight "on"
(object 4885) switchlight "on"
(object 8192) switchlight "on"
Goto "Runde"
it checks the animation with this line:
@ (_Schalter animationPhase "Component02" >= 0.01)So reading this, i thought it could be possible to check a player animation.
anyway, i thought about an other way to check when the animation is performed. the action "Salute" is from the action menu. So maybe it should be better to check if the player activate the action from the menu than to check if he performs the animation.
So what i know about actions is that they have number to identify them.
so the salute action is the first one and it's the number 0, but how to check if the player select this action?