Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

A boolean value stating whether the process instance should automatically deactivate or not.

 

Syntax

Code Block
themeRDark
languagejavascript
linenumberstrue
Processes("myProcess").autoDeactivate

Notes

This value is set when you create the process instance using Processes().

If it is set to true then the instance will automatically deactivate (as if calling instance.deactivate()) in the following scenarios:

  • When the player associated with the script is killed

It is advisable to have most, if not all, instances autoDeactivate so that processes will stop when the player is killed, freeing up processing time for remaining players in the game.

Div
classbox

Availability

Requires:

  • Warzone 3.1 or above
  • Process 0.1 or above