Jump to navigation Jump to search
CODE is a CAOS function used to work out which script is being run by an agent.
Returns, as an integer, the script number of the script currently being executed by the current TARG, or -1 if no script is running.
CODE being used in the CAOS Command Line, to display the current script being run by HOTS:
TARG HOTS OUTV CODE
Code to kill the current target agent if it is running the hit scipt:
SETV va00 CODE DOIF va00 = 3 KILL TARG ENDI