This AI is still in early stages of development.
instance.changeInterval()
- Aubergine
Owned by Aubergine
Change the timer interval for a process instance.
Â
Syntax
Processes("myProcess").changeInterval(interval);
Parameters
Parameter | Type | Mandatory | Notes | Pulse Version |
---|---|---|---|---|
interval | Number | Define the new interval to use for the process instance. If the process is currently active, it will be silently deactivated then reactivated to make the new interval take effect immediately. Defaults to PROCESS_INTERVAL_MIN if no value specified or if the stated interval is too small. The interval time will have a random offset between 1 and PROCESS_INTERVAL_RAND added to it – this helps reduce collisions when processes are running in multiple player scripts. | 0.1 |
Return value
Value | Type | Notes | Process Version |
---|---|---|---|
<instance> | Process Instance | The process instance is returned, so you can chain more instance methods, eg: Processes("foo").activate(...).addTask(...).run(); | 0.1 |
Availability
Requires:
- Warzone 3.1 or above
- Process 0.1 or above
See also
Related documentation:
- instance.activate() – activate an instance timer interval
- instance.deactivate() – deactivate an instance timer interval
- instance.active – property stating whether an instance timer is currently active
- Processes.deactivateAll() – deactivate all instances
- setTimer() – the JS API function that the process instance uses to set timer intervals.
- Process Instances – everything you wanted to know about process instances
Â