(info) This AI is still in early stages of development.

instance.onEnd()

Fired immediately before the current process run ends.

 

Syntax

Processes("myProcess").onEnd = function(processName, processData, runData, aborted) {
  // event handling code here
}

Parameters

ParameterTypeNotesProcess Version
processNameStringThe name of the process instance.0.1
processDataObjectThe data object associated with the instance.0.1
runDataVariant

The data associated with the current process run.

Defaults to an empty object if nothing specified when the run was triggered.

0.1
abortedBooleanIf true the current process run was aborted (it did not finish normally).0.1

Return values

The return value of the event handler is ignored.

Availability

Requires:

  • Warzone 3.1 or above
  • Process 0.1 or above

Â