$poseparameter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Syntax update)
Line 8: Line 8:
  $poseparameter (name) (min) (max) ["loop" (number)] ["wrap"]
  $poseparameter (name) (min) (max) ["loop" (number)] ["wrap"]


If a number is specified without loop being present, studiomdl will add the loop argument implicitly.
== Example ==
== Example ==


  $poseparameter yaw -90 90 loop 360
  $poseparameter yaw -90 90 loop 360
$poseparameter vehicle_wheel_fl_spin -180.00 180.00 360.00


[[Category:QC Commands|poseparameter]]__NOTOC__
[[Category:QC Commands|poseparameter]]__NOTOC__

Revision as of 15:29, 1 February 2009

These are the same as "blend" parameters normally specified in $sequence, 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"]

If a number is specified without loop being present, studiomdl will add the loop argument implicitly.

Example

$poseparameter yaw -90 90 loop 360
$poseparameter vehicle_wheel_fl_spin -180.00 180.00 360.00