Entity/GetNumPoseParameters

From Garry's Mod
Jump to: navigation, search
 Entity:GetNumPoseParameters( )

Contents

Description

Returns the number of pose parameters this entity has.

Returns

number

Amount of pose parameters the entity has

Examples

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
Personal tools
Navigation