Difference between revisions of "TASK PLAY ANIM NON INTERRUPTABLE"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Native |np=9 |p1t=int |p1d=The handle of the ped |p2t=char pointer |p2d=The animation's name |p3t=char pointer |p3d=The animation's set/group name |p4t=float |p4d=Playback s...")
 
(Flags)
 
Line 35: Line 35:
 
|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 || Unknown.
+
|3 || If set to ''false'' (''0''), the player is returned to their old coordinate once the animation is complete (for animations that move the player such as walking). ''True''  (''1'') will not return them to their old position.
 
|-
 
|-
 
|4 || Freezes the last frame of the anim.
 
|4 || Freezes the last frame of the anim.
 
|-
 
|-
 
|}
 
|}

Latest revision as of 15:03, 23 March 2015

TASK_PLAY_ANIM_NON_INTERRUPTABLE
Number of parameters: 9
Parameter #TypeDescription
1.intThe 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 (always -1)
Return value:
TypeDescription
None

This native make the ped play anim with no interrupt and disables the player control till the anim will end. In NET play - seen for everybody.
Flags is the same to other 'Anim flags' (anyway, see an examples below)

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.
2 Loops the animation infinitely, disables player movement but not player control.
3 If set to false (0), the player is returned to their old coordinate once the animation is complete (for animations that move the player such as walking). True (1) will not return them to their old position.
4 Freezes the last frame of the anim.