This AI is still in early stages of development.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Activate the interval timer for a process instance, causing the instance to be run at regular intervals until deactivated.

 

Syntax

Processes("myProcess").activate(quiet);

Parameters

ParameterTypeMandatoryNotesPulse Version

quiet

Boolean

(error)

If true the instance.onActivate() event will not be fired.

0.1

Return value

ValueTypeNotesProcess Version
<instance>Process Instance

The process instance is returned, so you can chain more instance methods, eg:

Processes("foo").activate(...).addTask(...).run();
0.1

Notes

When you activate a process instance, a timer will be set that will run the instance on a set interval until the instance is deactivated.

The time interval is defined when creating instances using Processes(), and can be later updated using instance.changeInteval().

If you want an instance to automatically become active when eventStartLevel() is fired, set autoActivate to true when creating it via Processes().

Note: By default, all instances are deactivated when the player associated with the script (me) is killed. If you don't want this behaviour for a specific instance set the autoDeactivate to false when creating the instance via Processes().

Availability

Requires:

  • Warzone 3.1 or above
  • Process 0.1 or above

See also

Related documentation:

 

  • No labels