- Documentation
- Server functions
- getElementZoneName
Function
getElementZoneName
Returns the name of the map zone where the element is (e.g. "Ganton"), or just the city.
Syntax
string getElementZoneName(element theElement [, bool citiesOnly = false])Arguments
theElementelement- The element.
citiesOnlybool, optional = falsetruereturns the city only.
Returns
The zone name.
Example
addCommandHandler("gdzie", function(player)
outputChatBox("Jesteś w: " .. getElementZoneName(player) .. ", " .. getElementZoneName(player, true), player)
end)