Garry's Mod Wiki

Entity:GetNumPoseParameters

  number 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:
weapon_pitch -90 / 20 weapon_yaw -40 / 40 rudder -45 / 45