User Login
Name
Password
Site Contents
News
About
Download
Scripts
Tutorials
Register
Support
FAQ
Script Reference
New User


Contact Me
Xide
Online Scripting Reference

killAllTriggers

Purpose
Terminates all triggers in the script and its included subroutines.

Syntax
killAllTriggers

Notes
Be careful with this command, especially if you are writing a subroutine that may need to preserve triggers already existing when the subroutine was called. It is always better to specifically terminate triggers using the "killTrigger" command if you know the ones that are active, instead of just killing all of them.

A good example of where this command could be used is in the disconnection handler of a script. Scripts should terminate their triggers if they are disconnected from the server, as they will likely re-enter the game in a completely different state.

Example



Return to item listing