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

instance.autoDeactivate

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

 

Syntax

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.

Availability

Requires:

  • Warzone 3.1 or above
  • Process 0.1 or above