Difference between revisions of "IsInMap"
From UODemo Wiki
(Created page with 'integer '''isInMap'''(location ''LocationToCheck''); This function will return 1 if the X and Y of ''LocationToCheck'' are in the map. A map is the area a server is controlling....') |
m (Protected "IsInMap" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
(No difference)
|
Revision as of 21:00, 25 January 2010
integer isInMap(location LocationToCheck);
This function will return 1 if the X and Y of LocationToCheck are in the map. A map is the area a server is controlling. The begin coordinates and the size of the map are defined by the .rundir\%SERVERNAME%\server.txt file, see: server.txt. You can also use the getRelayLoc script function to get the begin coordinates of the server map. There is no function that gives you the size of the map though. The Z coordinate of LocationToCheck is ignored.
Return to the Command List.