CAOS Language Guide
Compound Object Commands
|
Macro |
Description |
|
These commands are only to be used on Compound Objects and allow you to define different click areas on the object that will trigger events. Compound Objects are different from Simple Objects in that they can not be picked up - even if ATTR is set to allow it. Compound objects are generally large objects and have the ability to be made up of parts, with each part able to animate independently of any other part. |
|
|
SPOT spot# left top right bottom |
Set up a compound object hotspot for users/creatures to click on. These commands (along with KNOB) allows different parts of an object to produce different events when clicked on. spot# = (0-5) a number to identify this particular spot left/top/right/bottom = Co-ordinates of hotspot relative to part 0 of the object. Set left/top/right/bottom to - 1 - 1 - 1 - 1 to remove/blank a hotspot Command only |
|
KNOB function hotspot# |
Attach compound objects' hotspot to a particular function. function specifies the event and usage 0=creature activate 1 1=creature activate 2 2=creature deactivate 3=pointer activate 1 4=pointer activate 2 5=pointer deactivate hotspot# refers to the hot spot number defined with the SPOT command. Command only |
|
KMSG knob flag message |
Knob Message. Set the object message associated with the knob. This allows messages other that act1,act2 and deac to be sent - and also allows the usage to be altered (e.g. creature only) knob - (0-5) and refers to the KNOB functions already set up flag - used to describe the usage of the knob 1=Only creature can use this knob 2=Only pointer can use this knob 3=Both creature and pointer can use this knob message - message/event to be sent when this knob is activated. Values are (0-65535) Command only |
|
PART number |
Set the part number for future actions to work on (Compound Objects). e.g. animations Command only |