Resource:Maplimits

From Multi Theft Auto: Wiki
Revision as of 17:19, 6 December 2007 by Black Dragon (talk | contribs) (New page: __NOTOC__ Map Limits is a resource that allows defining points in a .map file to border a map. A player outside the border area will lose health until he dies or returns to the game area. ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Map Limits is a resource that allows defining points in a .map file to border a map. A player outside the border area will lose health until he dies or returns to the game area.

Usage

Syntax:

<maplimit>
	<point x="" y="" />
	<point x="" y="" />
	<point x="" y="" />
</maplimit>

When using maplimits in ones map, at least three points must be made.

Note that the sequence of points matters. For example, this would create a square shaped border:

<point x="0" y="0" />
<point x="1" y="0" />
<point x="1" y="1" />
<point x="0" y="1" />


While this would create two triangles:

<point x="0" y="0" />
<point x="1" y="1" />
<point x="0" y="1" />
<point x="1" y="0" />