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....') |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
integer '''isInMap'''(location ''LocationToCheck''); | 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 | + | This function will return 1 if the X and Y of ''LocationToCheck'' are in the map. A map is the area that the OSI/demo 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]]. | Return to the [[Command List]]. |
Latest revision as of 21:02, 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 that the OSI/demo 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.