Difference between revisions of "SET ANIM GROUP FOR CHAR"
Jump to navigation
Jump to search
Bombgamer532 (talk | contribs) (Tag: Undo) |
|||
Line 1: | Line 1: | ||
{{Native | {{Native | ||
|np=2 | |np=2 | ||
− | |p1t= | + | |p1t=integer |
− | |p1d=Ped | + | |p1d=Ped handler |
|p2t=string | |p2t=string | ||
− | |p2d= | + | |p2d=Anim set |
}} | }} | ||
− | to | + | This function sets ped animation group, which can be used, for example, to change walking style. |
+ | |||
+ | == Example == | ||
+ | <source lang="lua"> | ||
+ | |||
+ | RequestAnims("move_injured_generic") | ||
+ | while not HaveAnimsLoaded("move_injured_generic") do Wait(0) end | ||
+ | SetAnimGroupForChar(GetPlayerPed(), "move_injured_generic") | ||
+ | |||
+ | </source> |
Latest revision as of 09:04, 29 June 2021
Number of parameters: 2 | ||
---|---|---|
Parameter # | Type | Description |
1. | integer | Ped handler |
2. | string | Anim set |
Return value: | ||
Type | Description | |
None |
This function sets ped animation group, which can be used, for example, to change walking style.
Example
RequestAnims("move_injured_generic")
while not HaveAnimsLoaded("move_injured_generic") do Wait(0) end
SetAnimGroupForChar(GetPlayerPed(), "move_injured_generic")