TASK PLAY ANIM SECONDARY UPPER BODY

From GTAMods Wiki
Revision as of 18:20, 12 January 2015 by Cpp (talk | contribs) (Function description and (limited) flag effects)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
TASK_PLAY_ANIM_SECONDARY_UPPER_BODY
Number of parameters: 9
Parameter #TypeDescription
1.Ped handle (int)The handle of the ped
2.char pointerThe animation's name
3.char pointerThe animation's set/group name
4.floatPlayback speed?
5.boolflag 1
6.boolflag 2
7.boolflag 4
8.intunknown
Return value:
TypeDescription
None

Description

Makes a character play an animation only on its upper body. The behavior of the character can be controlled with flags.

Note:Apparently the last parameter must always be 0 or a negative integer.

Flags

The following table lists the observed effect of each flag when they are set to true.

Flag Observed effect
1 Loops the animation infinitely. Allows player control and movement.
2 Loops the animation infinitely, disables player movement but not player control.
3 Same effect as flag number 2 (tested on "reload" from "gun@shotgun"
4 Freezes the upper body on the last frame of the anim. It hast no effect on player movement or control.