$poseparameter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (minor cleanup and info)
Line 1: Line 1:
<code>$poseparameter (name) (min) (max) ["loop" (number)] ["wrap"]
These are the same as "blend" parameters normally specified in sequences, except that you can now explicitly declare their range instead of letting studiomdl try to figure it out. If <code>"loop"</code> is specified, the engine will wrap calculate values.


* These are the same as "blend" parameters normally specified in sequences, except that you can now explicitly declare their range instead of letting studiomdl try to figure it out.  
* <code>loop (range)</code> specifies that the inputs wrap at a specified value.
* If "loop" is specified, the engine will wrap calculate values.  
* <code>wrap</code> specifies that values less than <code>(min)</code> wrap around to <code>(max)</code>, and so on.


[[Category:QC Commands]]
== Syntax ==
 
$poseparameter (name) (min) (max) ["loop" (number)] ["wrap"]
 
== Example ==
 
$poseparameter yaw -90 90 loop 360
 
[[Category:QC Commands|poseparameter]]__NOTOC__

Revision as of 15:50, 28 April 2008

These are the same as "blend" parameters normally specified in sequences, except that you can now explicitly declare their range instead of letting studiomdl try to figure it out. If "loop" is specified, the engine will wrap calculate values.

  • loop (range) specifies that the inputs wrap at a specified value.
  • wrap specifies that values less than (min) wrap around to (max), and so on.

Syntax

$poseparameter (name) (min) (max) ["loop" (number)] ["wrap"]

Example

$poseparameter yaw -90 90 loop 360