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

PLNE

From Creatures Wiki
Jump to navigation Jump to search

PLNE is a CAOS command used to change or output the image plane of an object.

Usage

Command

Syntax: PLNE plane(integer)

Sets the objects plane to the specified integer. While image plane in C3/DS usually range from 0 (furthest back) to 9000 or so (furthest forward), the command will take higher numbers or even negative ones (they seem to wrap around to very high numbers).

Function

Syntax: PLNE

Returns the image plane of the object.

Examples

Saves the plane of an object and uses it to create a new object in the plane just in front of it (can be used to make sure effects show in front of their object, for example):

setv va00 plne
addv va00 1
new: simp X X X "sprite" X X va00
...