$prepend: Difference between revisions
Jump to navigation
Jump to search

($prepend) |
(Clarify how $prepend works with examples) |
||
Line 1: | Line 1: | ||
Allows you to add more options to the specified [[$animation]], except the options are processed before currently set options for the specified animation. | {{lang|$prepend|$title=$prepend}} | ||
{{entity|type=[[:Category:QC_Commands|QC command]]|$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]] | |||
== Syntax == | == Syntax == | ||
$prepend <animation | <source lang=php> | ||
$prepend "SequenceName" <options> | |||
</source> | |||
== Examples == | |||
<source lang=php> | |||
$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 | |||
} | |||
</source> | |||
== See also == | |||
* [[$append]] Add more options to the specified [[$sequence|sequences]] or [[$animation|animations]] '''after''' all other options. | |||
* [[$continue]] Add more options to the specified [[$sequence|sequences]] or [[$animation|animations]]. '''Replaces''' both [[$prepend]] and [[$append]] QC commands. | |||
* [[$definemacro]] | |||
* [[$definevariable]] | |||
[[Category:Modeling]] | |||
[[Category:QC Commands|A]] | |||
[[Category:QC Commands|prepend]]__NOTOC__ | [[Category:QC Commands|prepend]]__NOTOC__ | ||
[[Category:Source]]__NOTOC__ |
Revision as of 14:40, 14 April 2023


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
- $append Add more options to the specified sequences or animations after all other options.
- $continue Add more options to the specified sequences or animations. Replaces both $prepend and $append QC commands.
- $definemacro
- $definevariable