CAOS Language Guide
And what is Targ?
All CAOS operators work on the current targ object and the assumption is made that the commands that are processed are all to do with this targ. Targ can be changed using a few commands but the default targ is always the owner of the event script which is being processed, that is to say if a particular object's collision script is being processed then it will be targ until targ is programmatically changed. One way that targ changes is by using a NEW: command to create a new object of a certain type - for all the commands after the NEW: targ is referring to the new object just created and not the owner of the script. Other ways of changing targ will be described along with the rest of the CAOS commands.