CAOS Language Guide
Object Property Commands
|
Macro |
Description |
|
These commands set/return an objects physical properties and can be used when creating an object, or during event execution. |
|
|
PUPT pose x y |
Pick Up point. This is the location of the virtual 'hand' an object uses to hold another. Simple Objects only. pose = corresponding object pose. Specify –1 to define default pickup point. x y = relative co-ordinate. LValue only |
|
PUHL pose x y |
Pick Up handle. The virtual 'handle', i.e. the point by which an object is carried. Simple Objects only. pose = corresponding object pose. Specify –1 to define default pickup handle. x y = relative co-ordinate. LValue only |
|
ACCG |
Sets/returns the objects Acceleration due to Gravity. This equates to density and air resistance in real-world physics. Value is in pixels per tick per tick. RValue and LValue |
|
AERO |
Sets/returns the objects Aerodynamics. % of x and y velocity lost due to air resistance every tick. 0% infinite movement! RValue and LValue |
|
REST |
Sets/returns the objects Restitution. % of y velocity lost after collision. I.e. Bouncyness. 0% infinite bounce! RValue and LValue |
|
SIZE |
Sets/returns the minimum door value through which an object will pass. Door values are set up using a Room Editor. RValue and LValue |
|
RNGE |
Sets/returns the range an object can see. RValue and LValue |
|
ATTR |
Sets/returns an objects Attributes. See reference section for values. RValue and LValue |
|
BHVR click touch |
Sets/returns the reactions to clicks by mouse and activation requests by a creature. The values for click and touch are listed in the reference section Command only |
|
WDTH |
Returns objects width RValue only |
|
HGHT |
Returns objects height RValue only |