Welcome to the Creatures Wiki! Log in and join the community.

WALL

From Creatures Wiki
Jump to navigation Jump to search

WALL is a CAOS command that returns the direction of the last wall the agent collided with.

Syntax[edit]

WALL (integer)

Returns the direction of the last wall the agent collided with. Directions are LEFT, RGHT, _UP_, or DOWN.

Examples[edit]

From the basic doll script's collision script, causes the doll to make a 'thud' sound when it hits the ground (sound file name is dr64.wav):

 scrp 2 21 2000 6
 	doif wall eq down
 		snde "dr64"
 	endi
 endm

See also[edit]