Difference between revisions of "SET ANIM GROUP FOR CHAR"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Native |np=2 |p1t=Handle |p1d=Ped Handle |p2t=string |p2d=Unknown (Anim ?) }} The results of this function are either unknown or untested.")
 
(Undo revision 18973 by NotSpy (talk))
(Tag: Undo)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Native
 
{{Native
 
|np=2
 
|np=2
|p1t=Handle
+
|p1t=integer
|p1d=Ped Handle
+
|p1d=Ped handler
 
|p2t=string
 
|p2t=string
|p2d=Unknown (Anim ?)
+
|p2d=Anim set
 
}}
 
}}
  
The results of this function are either unknown or untested.
+
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

SET_ANIM_GROUP_FOR_CHAR
Number of parameters: 2
Parameter #TypeDescription
1.integerPed handler
2.stringAnim set
Return value:
TypeDescription
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")