ped.addAnimation: Difference between revisions

272 bytes added ,  Yesterday at 16:36
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{ScriptItem2
{{ScriptItem2
|side = client
|side = client
|games = iii vc sa
|type = method
|type = method
|class = Ped
|class = Ped
Line 10: Line 11:
|notes = More than one animation can be applied, which is why the function is called "add animation" instead of "play animation".  
|notes = More than one animation can be applied, which is why the function is called "add animation" instead of "play animation".  
This usually leads to undesired results as most animation were not designed to be played together. If you want to reset the current animation(s) to play another, use [[ped.clearAnimations|ped.clearAnimations]] on GTA VC and SA, [[ped.clearObjective|ped.clearObjective]] on GTA III.<br>
This usually leads to undesired results as most animation were not designed to be played together. If you want to reset the current animation(s) to play another, use [[ped.clearAnimations|ped.clearAnimations]] on GTA VC and SA, [[ped.clearObjective|ped.clearObjective]] on GTA III.<br>
Animation lists for [[Resources/GTA3/Animations|GTA III]], [[Resources/GTAVC/Animations|GTA Vice City]], [[Resources/GTASA/Animations|GTA SA]], and [[Resources/GTAIV/Animations|GTA IV]]
Animation lists for [[Resources/GTA3/Animations|GTA III]], [[Resources/GTAVC/Animations|GTA Vice City]], [[Resources/GTASA/Animations|GTA SA]], and [[Resources/GTAIV/Animations|GTA IV]]<br>
For GTA IV, use an animation native such as [[natives.taskPlayAnimNonInterruptable|natives.taskPlayAnimNonInterruptable]] or [[https://wiki.gtaconnected.com/natives.taskPlayAnimWithFlags|https://wiki.gtaconnected.com/natives.taskPlayAnimWithFlags]]
}}
}}
2,858

edits