NamedCreate Trigger: Difference between revisions

From Ashes of the Singularity - Official Wiki
Jump to navigation Jump to search
(Created page with "'''NamedCreate triggers''' fire when a specific unit or building is spawned via a script. ==Arguments== *'''Target''' - Name of the script-spawned unit or building. *'''IsBui...")
 
m (Updated look.)
 
(2 intermediate revisions by one other user not shown)
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).  
==Common Usage==
 
These triggers have largely fallen by the wayside in favor of better options (activating inactive[[Timer]] triggers, primarily)
 
==Examples==
{{SectionTemplate
|h=h3
|title=Common Usage
|content=}}
These triggers have largely fallen by the wayside in favor of better options (activating inactive&nbsp;[[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"/>
   </Trigger>
   </Trigger>
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


NamedCreate Trigger


NamedCreate triggers fire when a specific unit or building is spawned via a script.

Arguments

  • Target - Name of the script-spawned unit or building.
  • IsBuilding - If this is a building (if not it refers to a unit).


Common Usage

These 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.