NamedCreate Trigger: Difference between revisions

From Ashes of the Singularity - Official Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Triggers]]
'''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==
 
== Arguments ==
 
*'''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).  
Line 8: Line 11:
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)


==Examples==
== Examples ==
 
   <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.

Revision as of 20:22, 18 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.