Garry's Mod Wiki


  Entity:SetBoneController( number boneControllerID, number value )


Sets the specified value on the bone controller with the given ID of this entity, it's used in HL1 to change the head rotation of NPCs, turret aiming and so on.

This is the precursor of pose parameters, and only works for Half Life 1: Source models supporting it.


1 number boneControllerID
The ID of the bone controller to set the value to. Goes from 0 to 3.
2 number value
The value to set on the specified bone controller.