TASK PLAY ANIM NON INTERRUPTABLE

From GTAMods Wiki
Revision as of 15:03, 23 March 2015 by FL1K3R (talk | contribs) (Flags)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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.