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

instance.onRun()

Fired immediately before a new process run starts.

 

Syntax

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

Parameters

ParameterTypeNotesProcess Version
processNameStringThe name of the instance that is about to run.0.1
processDataObjectThe data object associated with the instance.0.1
runDataVariant

The data associated with the process run that is about to start.

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

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

Future changes may include allowing a return value to abort the run.

Â