Difference between revisions of "TASK PLAY ANIM SECONDARY UPPER BODY"
Jump to navigation
Jump to search
(Function description and (limited) flag effects) |
m (I added a missing note) |
||
Line 24: | Line 24: | ||
== Description == | == Description == | ||
− | Makes a character play an animation only on its upper body. The behavior of the character can be controlled with flags. | + | 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 38: | ||
|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. | ||
|- | |- | ||
|} | |} |
Revision as of 18:43, 12 January 2015
Number of parameters: 9 | ||
---|---|---|
Parameter # | Type | Description |
1. | Ped handle (int) | The handle of the ped |
2. | char pointer | The animation's name |
3. | char pointer | The animation's set/group name |
4. | float | Playback speed? |
5. | bool | flag 1 |
6. | bool | flag 2 |
7. | bool | flag 4 |
8. | int | unknown |
Return value: | ||
Type | Description | |
None |
Description
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. |