CAOS Language Guide
Vehicle/Lift Object Commands
|
Macro |
Description |
|
These commands are particular to objects of type LIFT or VHCL - these are the only objects which can carry a creature around the world |
|
|
CABN left top right bottom |
Set the relative co-ordinates for a vehicle cabin, the place where creatures are held. Command only |
|
DPS2 gravity |
Drop Passengers 2. Causes any creatures carried by the vehicle to be "dropped". gravity 0 = gravity is not activated on the object and must be done manually under script control. non-zero = gravity is activated on the object Command only |
|
DPAS |
Drop passengers. This works the same way as specifying DPS2 1. i.e. all passengers are ejected and have gravity operational. Command only |
|
GPAS |
Get passengers. Loads any nearby creature into the vehicles cabin Command only |
|
SPAS vehicle creature |
Loads a named creature into the named vehicle Command only |
|
LACB |
Align Lift cabin with room floor. If this value is set to non-zero the lift will stop at a position where the bottom of its cabin is aligned with the room floor. The default behaviour is to align the bottom of the lift with the floor. LValue and RValue |
|
XVEC value |
Sets/returns the vehicles x movement vector in 1/256th of a pixel. This command is a legacy from Creatures 1 - VELX will work just as good. RValue and LValue |
|
YVEC value |
Sets/returns the vehicles y movement vector in 1/256th of a pixel. This command is a legacy from Creatures 1 - VELX will work just as good. RValue and LValue |
|
BUMP |
Returns a vehicle's collision data. This is a legacy command left in for completeness. To utilise this a vehicle must move use XVEC and YVEC (rather than VELX and VELY) and have ATTR set up to respond to boundaries. The values returned are from a bit-field where: bit0 - hit left bit1 - hit right bit2 - hit top bit3 - hit bottom So, for example: a value of 1 corresponds to having hit a wall to the left; a value of 4 corresponds to having hit a ceiling; a value of 5 corresponds to having hit a ceiling and a wall to the left. RValue only. |
|
TELE x y |
Teleport the vehicles occupants to the location x y and move the camera too. Command only |