How to work with animations?
#1

Hello, everybody well i know how to apply animations, but i want to do a food order system at well stacked pizza, same as in San Andreas singleplayer. I am stuck by animations, how can i make the clerk put away food and then put it back on the table? Do i need to make a timer for like one second and then apply animation to put the food on table? Same as attach object? Or is there a simpler way without using timers? And i will be using a menu. Any ideas? Sorry if i am not clear, i am writing through my phone.
Reply
#2

You can find the animation for eat hear:
Код:
FOOD

EAT_Burger
EAT_Chicken
EAT_Pizza
EAT_Vomit_P
EAT_Vomit_SK
FF_Dam_Bkw
FF_Dam_Fwd
FF_Dam_Left
FF_Dam_Right
FF_Die_Bkw
FF_Die_Fwd
FF_Die_Left
FF_Die_Right
FF_Sit_Eat1
FF_Sit_Eat2
FF_Sit_Eat3
FF_Sit_In
FF_Sit_In_L
FF_Sit_In_R
FF_Sit_Look
FF_Sit_Loop
FF_Sit_Out_180
FF_Sit_Out_L_180
FF_Sit_Out_R_180
SHP_Thank
SHP_Tray_In
SHP_Tray_Lift
SHP_Tray_Lift_In
SHP_Tray_Lift_Loop
SHP_Tray_Lift_Out
SHP_Tray_Out
SHP_Tray_Pose
SHP_Tray_Return
if you want to repeated or stop after animation is over, use this parametrs from wiki
loop If set to 1, the animation will loop. If set to 0, the animation will play once.

https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply
#3

Thanks. Is there a way to know, when the animation has ended?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)