Usage

Syntax: setshape(int type, int width, int height);
type has to be 1 (meaning rectangle; no other types available yet).
width and height in pixels.

Explanation

Sets the shape of the NPC.

Example

function onCreated()
{
  setshape(1, 32, 32);
  blockagain();
}

Will make the NPC's shape into a 32x32 pixel square (the size of a bush or rock) and block the player.

Categories

CategoryFunctionClientside
CategoryFunctionServerside
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki