$prepend: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Clarify how $prepend works with examples)
m (Remove wrong Entity Categories)
Line 1: Line 1:
{{lang|$prepend|$title=$prepend}}
{{lang|$prepend|$title=$prepend}}
{{entity|type=[[:Category:QC_Commands|QC command]]|$prepend|}}
'''{{ent|$prepend|}}''' is a [[:Category:QC_Commands|QC command]] available in all {{src|4}} games.


{{inline note | ''Please see [[$continue]] QC command for further info.''}}
{{inline note | ''Please see [[$continue]] QC command for further info.''}}

Revision as of 14:53, 14 April 2023

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