How do I add more areas with CreateDynamicPolygon ?
#7

You need an array of coordinates (X and Y coord pairs), and declare it like this:

Code:
new Float:polygon_coords[] =
{
	408.2250, 2173.6580, // Point 1
	346.6827, 1643.3701, // Point 2
	-122.9496, 1689.5978, // Point 3
	408.2250, 2173.6580 // Point 1 to close it
};
As you might have noticed, the very last pair must be equal to the first, so that the polygon closes. Then pass this array to CreateDynamicPolygon (to the "points" argument). Minimum and maximum Z can be adjusted in the function.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)