This article's documentation is for anything that uses the Source engine. Click here for more information.

$poseparameter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Deconfirmed: This parameter is not entirely obsolete; the posecycle option for $sequence does not allow you to specify the range of the parameter, and a buggy null value will be used as the range instead if this parameter is not used.)
(add languagebar)
Line 1: Line 1:
{{LanguageBar}}
{{this is a|QC command|name=$poseparameter}} It allows configuration of a [[blend sequence]], by specifying the range of values ahead of time.
{{this is a|QC command|name=$poseparameter}} It allows configuration of a [[blend sequence]], by specifying the range of values ahead of time.
{{tip|The important parameters can be specified in the $sequence itself, via the <code>blend</code> option, making this parameter unnecessary.}}
{{tip|The important parameters can be specified in the $sequence itself, via the <code>blend</code> option, making this parameter unnecessary.}}

Revision as of 21:14, 28 December 2024

English (en)中文 (zh)Translate (Translate)

$poseparameter is a QC command available in all Source Source games. It allows configuration of a blend sequence, by specifying the range of values ahead of time.

Tip.pngTip:The important parameters can be specified in the $sequence itself, via the blend option, making this parameter unnecessary.
Icon-Bug.pngBug:In sequences using the posecycle option, an invalid range is assumed when $poseparameter is not used to specify the pose parameter ahead of time. Therefore, when using posecycle, you need to use this parameter to tell StudioMDL how the pose parameter should affect the animation.  [todo tested in ?]

Syntax

$poseparameter <$sequence name> <int min> <int max> [loop <int>] [wrap]
$poseparameter yaw -90 90 loop 360
$poseparameter vehicle_wheel_fl_spin -180 180 360
loop <int>
Defines a custom value to wrap at?
Todo: Purpose of this.
Tip.pngTip:If a third number is specified without loop being present, StudioMDL will add the loop argument implicitly.
wrap
Values less than min wrap around to max, and so on.

See also