NamedCreate Trigger: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
JYWLuca8269 (talk | contribs) m (Updated look.) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}} | |||
{{HeaderTemplate | |||
|welcome=NamedCreate Trigger | |||
}} | |||
'''NamedCreate triggers''' fire when a specific unit or building is spawned via a script. | '''NamedCreate triggers''' fire when a specific unit or building is spawned via a script. | ||
== Arguments = | {{SectionTemplate | ||
|h=h3 | |||
|title=Arguments | |||
|content=}} | |||
*'''Target''' - Name of the script-spawned unit or building. | *'''Target''' - Name of the script-spawned unit or building. | ||
*'''IsBuilding''' - If this is a building (if not it refers to a unit). | *'''IsBuilding''' - If this is a building (if not it refers to a unit). | ||
{{SectionTemplate | |||
|h=h3 | |||
|title=Common Usage | |||
|content=}} | |||
These triggers have largely fallen by the wayside in favor of better options (activating inactive [[Timer|Timer]] triggers, primarily) | These triggers have largely fallen by the wayside in favor of better options (activating inactive [[Timer|Timer]] triggers, primarily) | ||
{{SectionTemplate | |||
|h=h3 | |||
|title=Examples | |||
|content=}} | |||
<Trigger Name="MoveBrainWhale0" Type="NamedCreate" Target="BrainWhale" > | <Trigger Name="MoveBrainWhale0" Type="NamedCreate" Target="BrainWhale" > | ||
<AttackAttackMove Name="BrainWhale" Position="6464,-3048,0"/> | <AttackAttackMove Name="BrainWhale" Position="6464,-3048,0"/> | ||
Line 18: | Line 31: | ||
From the Deneb mission in Imminent Crisis, this tells the brainwhale to move as soon as it is spawned. | From the Deneb mission in Imminent Crisis, this tells the brainwhale to move as soon as it is spawned. | ||
[[Category:Triggers]] |
Latest revision as of 16:09, 24 November 2020
Arguments
Common UsageThese triggers have largely fallen by the wayside in favor of better options (activating inactive Timer triggers, primarily)
Examples<Trigger Name="MoveBrainWhale0" Type="NamedCreate" Target="BrainWhale" > <AttackAttackMove Name="BrainWhale" Position="6464,-3048,0"/> </Trigger> From the Deneb mission in Imminent Crisis, this tells the brainwhale to move as soon as it is spawned. |