Making a ped Animation
Enviado: 04 Ago 2018, 14:44
ok here is my code.
After completing the first animation and going for the panic animation the peds seem to freeze and if i hit them again they seem to contiue the second animation.
What's the problem here?
Código: Selecionar tudo
SCRIPT_START
{
NOP
LVAR_INT sc_player sc_char
GET_PLAYER_CHAR 0 sc_player
REQUEST_ANIMATION handsup
REQUEST_ANIMATION sprint_panic
LOAD_ALL_MODELS_NOW
main:
wait 0
IF GET_CHAR_PLAYER_IS_TARGETING 0 sc_char
TASK_PLAY_ANIM sc_char handsup ped 4.0 0 0 0 1 -1
WHILE IS_PLAYER_TARGETTING_CHAR 0 sc_char
wait 0
ENDWHILE
ENDIF
IF NOT IS_PLAYER_TARGETTING_CHAR 0 sc_char
TASK_PLAY_ANIM sc_char handsup ped 4.0 0 0 0 0 1
TASK_PLAY_ANIM sc_char sprint_panic ped 4.0 0 0 0 1 -1
ENDIF
GOTO main
}
SCRIPT_ENDWhat's the problem here?