Difference between revisions of "TASK PLAY ANIM SECONDARY UPPER BODY"

From GTAMods Wiki
Jump to navigation Jump to search
(Function description and (limited) flag effects)
 
m
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
|p5t=bool
 
|p5t=bool
 
|p5d=flag 1
 
|p5d=flag 1
|p5t=bool
+
|p6t=bool
 
|p6d=flag 2
 
|p6d=flag 2
|p6t=bool
+
|p7t=bool
 
|p7d=flag 3
 
|p7d=flag 3
|p7t=bool
+
|p8t=bool
|p7d=flag 4
+
|p8d=flag 4
|p8t=int
+
|p9t=int
|p8d=unknown
+
|p9d=unknown
 
|r=0
 
|r=0
 
}}
 
}}
  
 
== Description ==
 
== Description ==
 
+
{| style="float: right;"
Makes a character play an animation only on its  upper body. The behavior of the character can be controlled with flags.  
+
|[[File:Niko_pretending_to_fly.png|thumb|250px|center|Video on Gfy[https://fat.gfycat.com/IgnorantSereneIberianmidwifetoad.webm]]]
 +
|}
 +
Makes a character play an animation only on its  upper body. The behavior of the character can be controlled with flags. The effects of playback_speed have not been test but its value varies (observed on the game's scripts) between 8.0 and 10000.0
  
 
Note:Apparently the last parameter must always be 0 or a negative integer.
 
Note:Apparently the last parameter must always be 0 or a negative integer.
Line 38: Line 40:
 
|2 || Loops the animation infinitely, disables player movement but not player control.
 
|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"
+
|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.
 
|4 || Freezes the upper body on the last frame of the anim. It hast no effect on player movement or control.
 
|-
 
|-
 
|}
 
|}

Latest revision as of 19:06, 12 January 2015

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 3
8.boolflag 4
9.intunknown
Return value:
TypeDescription
None

Description

Video on Gfy[1]

Makes a character play an animation only on its upper body. The behavior of the character can be controlled with flags. The effects of playback_speed have not been test but its value varies (observed on the game's scripts) between 8.0 and 10000.0

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.