Usage

Syntax: showpoly(int index, {float x1, float 1y,float x2, float y2 , float xn, float yn, ... });
Returns polygon object.

Explanation

showpoly renders a polygon in the game. Depending on the number of sets of co-ordinates given it renders a line, triangle, quad, or polygon.

Example

function onCreated()
{
  showpoly( 200, {20, 20, 30, 20, 30, 30, 20, 30 } );
}

... renders a square.

function onCreated()
{
  temp.array = {20, 20, 30, 20, 30, 30, 20, 30 } ;
  showpoly( 200, temp.array );
}

... renders a square.

Categories

CategoryFunctionClientside
CategoryFunctionServerside

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki