Quick question,
I want to change the animation used by the Playa Dance Party and the code that seems to control it is:
Code:
elseif player_action_is_pressed(B_DOWN) and not USE_PUSHED then
if PLAYA_DANCE_COUNTER == 1 then
set_animation_state(LOCAL_PLAYER, "dance b")
sandboxplus_message(" Playa dance party engage")
elseif PLAYA_DANCE_COUNTER == 2 then
set_animation_state(LOCAL_PLAYER, "dance c")
sandboxplus_message(" Playa dance party 2: Electric Boogaloo")
elseif PLAYA_DANCE_COUNTER == 3 then
clear_animation_state(LOCAL_PLAYER)
sandboxplus_message(" Party's over")
end
if PLAYA_DANCE_COUNTER == 3 then
PLAYA_DANCE_COUNTER = 1
else
PLAYA_DANCE_COUNTER = PLAYA_DANCE_COUNTER + 1
end
There is a note to this section that reads:
Code:
set_animation_state(LOCAL_PLAYER, "dance b") -- Sets dance animations. Feel free to replace them with your own.
I have a very limited understanding of programming and I am not really sure how to change the animation. I have tried replacing the "dance b" with other things but I am not entirely sure what the set_animation_state function is looking for.
Any help would be amazing.
Thanks.