$controller

From Valve Developer Community
Revision as of 09:28, 16 October 2007 by Wolf (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Allows the bone to be controled from the game code. The axis can be X Y or Z. You can prefix L on the axis to specify this controller loops back around to the start when it ends and/or surfix R to specify the start/end numbers are radian instead of degrees. If you need controle over more then one axis you need to specify a new controller for each axis.

Description

$controller number "bone-name" axis start-offset end-offset

Example

$modelname "npcs/robot.mdl"
$cdmaterials "models/npcs/"
$model "Robot" "robot.smd"
$controller 1 "jaw" X 0 20
$sequence "idle" "idle.smd"