SC2Mapster.com
Maps
Assets
Teams
Authors
Forums
Wiki
Paste
Sign in
Register new account
SC2Mapster.com Wiki
SC2 API
/
Functions
/
TriggerCreate
r2
Source
Markup:
<<apifunction>> <<name>>TriggerCreate<</name>> <<description>> <<code>>native trigger TriggerCreate (string name);<</code>> Create a new trigger from a function <</description>> <<param string name>>Name of the function you want to be "triggerized". It must be of the form <<code>>bool TriggerName (bool checkConds, bool doActions)<</code>><</param>> <<return trigger>>A trigger corresponding to the function<</return>> <<example Initialization Trigger>> // Define the trigger function bool TriggerCustom (bool checkConds, bool doActions) { if (checkConds && doActions) { // Do Something } } // Create a new trigger based off the function trigger t = TriggerCreate("TriggerCustom"); // Run it at map initialization TriggerAddEventMapInit (t); <</example>> <<seealso>>TriggerAddEventMapInit <</seealso>> <</apifunction>>
Markup Type:
The type of markup for this entry.
Click here for details
.
BBCode
Markdown
Plain Text
WikiCreole