Garry's Mod Wiki

Entity:GetNumPoseParameters

Description

Returns the number of pose parameters this entity has.

Returns

1 number
Amount of pose parameters the entity has

Example

Prints all the entities poses.

The entity used to generate the output is a model of the combine helicopter.

for i=0, ent:GetNumPoseParameters() - 1 do local min, max = ent:GetPoseParameterRange( i ) print( ent:GetPoseParameterName( i ) .. ' ' .. min .. " / " .. max ) end
Output:
<nowiki>weapon_pitch -90 / 20 weapon_yaw -40 / 40 rudder -45 / 45</nowiki>

Page Links


Special Pages


Wikis

?

Render Time: 42ms

Session 0
DB GetPage 3
Generate Html 14
SaveChanges 10
Render Body 0
Render Sidebar 11