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...")
 
No edit summary
Line 3: Line 3:
*'''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)
== Common Usage ==
 
These triggers have largely fallen by the wayside in favor of better options (activating inactive [[Timer|Timer]] triggers, primarily)
 
==Examples==
==Examples==
   <Trigger Name="MoveBrainWhale0" Type="NamedCreate" Target="BrainWhale" >
   <Trigger Name="MoveBrainWhale0" Type="NamedCreate" Target="BrainWhale" >

Revision as of 23:43, 17 January 2017

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.