Other great resources: Official JS API docs, Scripting Forum
eventDesignCreated()
Triggers when a player saves a new template in the droid designer...
Syntax
function eventDesignCreated(template) {
// do stuff
}Parameters & References
Parameter | Type | Mandatory | Description | Game version |
|---|---|---|---|---|
template | An object describing the template that was just created. | 3.2 |
Return value
Warzone does not process the event handler's return value.
Notes
This event only triggers on the client that the player is using, as such it's only reliable to listen to this from scripts that run on all network peers such as rules.js or 'extra' scripts.
The template can now be produced at suitable factories (eg. with enough modules) if the components are available.
Example
function eventDesginCreated(template) {
console("Just designed: "+template.name);
}