Crab.getFacing()

From 8x9craft
Jump to: navigation, search
function getFacing(): Facing

Get crab's facing (direction he's looking at).

Returns: an object of type Facing that holds information about which direction crab's pointing at.

Examples

// Say your name
var facing = crab.getFacing();
crab.say("I'm facing " + facing.name);

See also