Welcome to the Creatures Wiki! Log in and join the community.
CODE
Jump to navigation
Jump to search
CODE is a CAOS function used to work out which script is being run by an agent.
Usage[edit]
Syntax: CODE
Returns, as an integer, the script number of the script currently being executed by the current TARG, or -1 if no script is running.
Examples[edit]
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