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

$prepend: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Language subpage}}{{inline note | ''Please see [[$continue]] QC command for further info.''}}
{{LanguageBar}}
{{this is a|QC command|name=$prepend}}{{inline note | ''Please see [[$continue]] QC command for further info.''}}
Allows you to add more options to the specified [[$sequence|sequences]] or [[$animation|animations]] after declared, by expanding it, except the options are processed before currently set options for the specified animation. This somehow also allow expand [[$definemacro|macros]]
Allows you to add more options to the specified [[$sequence|sequences]] or [[$animation|animations]] after declared, by expanding it, except the options are processed before currently set options for the specified animation. This somehow also allow expand [[$definemacro|macros]]


Line 32: Line 33:
* [[$definemacro]]
* [[$definemacro]]
* [[$definevariable]]
* [[$definevariable]]
[[Category:Source]]
[[Category:Modeling]]<!--Why?-->

Latest revision as of 21:58, 18 July 2025

English (en)Translate (Translate)

$prepend is a QC command available in all Source Source games.

Please see $continue QC command for further info.

Allows you to add more options to the specified sequences or animations after declared, by expanding it, except the options are processed before currently set options for the specified animation. This somehow also allow expand macros

Syntax

 $prepend "SequenceName" <options>

Examples

$sequence "idle" a_idle {
	loop fps 40
	iklock "rfoot" 1 0
	iklock "lfoot" 1 0
}

// more QC stuff \\

// add this options before all other $sequence "idle" options
$prepend "idle" {
	activity ACT_IDLE 1
}

See also