$controller: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
'''$controller 1 "jaw" X 0 20<!-- $controller 2 "tracker" LYR -1 1 -->''' | '''$controller 1 "jaw" X 0 20<!-- $controller 2 "tracker" LYR -1 1 -->''' | ||
$sequence "idle" "idle.smd" | $sequence "idle" "idle.smd" | ||
[[Category:QC Commands]] |
Revision as of 18:26, 7 November 2007
Allows the bone to be controlled from game code. The axis can be X, Y, or Z. The prefix L on the axis specifies that this controller loops back around to the start when it ends. The suffix R specifies the angles are in radians instead of degrees.
If you need a controller that rotates around more then one axis, then 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"