Crab.getPosition()

From 8x9craft
Revision as of 06:21, 23 February 2017 by Maciek (talk | contribs) (Created page with "<source lang=js> function getPosition(): Vector3i </source> Get crab's position. '''Returns:''' crab's current world position. === Examples === <source lang=js> // Say your...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
function getPosition(): Vector3i

Get crab's position.

Returns: crab's current world position.

Examples

// Say your position
var pos = crab.getPosition();
crab.say("I'm at position: x = " + pos.x + ", y = " + pos.y + ", z = " + pos.z);

See also