$controller: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (cleanup)
mNo edit summary
Line 1: Line 1:
{{stub}}
{{stub}}
<!-- confirm mouth = 1, confirm syntaxt of "tracker" -->
<!-- confirm mouth = 1, confirm syntax of "tracker" -->


Allows the bone to be controlled from game code. <!-- Although "mouth" can be used in place of a number it is the same as just using the number 1, this is hard-coded in studiocompiler. -->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 suffix R to specify the start/end numbers are in {{wiki|radian}} units instead of degrees.
Allows the bone to be controlled from game code. <!-- Although "mouth" can be used in place of a number it is the same as just using the number 1, this is hard-coded in studiocompiler. -->The axis can be X, Y, or Z. The prefix L on the axis to specifies that this controller loops back around to the start when it ends. The suffix R specifies the angles are in {{wiki|radian}}s instead of degrees.


If you need a controller over more then one axis you need to specify a new controller for each axis.
If you need a controller that rotates around more then one axis, then you need to specify a new controller for each axis.


== Description ==
== Description ==

Revision as of 09:59, 16 October 2007

Stub

This article or section is a stub. You can help by expanding it.

Allows the bone to be controlled from game code. The axis can be X, Y, or Z. The prefix L on the axis to specifies that this controller loops back around to the start when it ends. The suffix R specifies the angles are in Wikipedia icon 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"