Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...