SetPlayerAreaTrespass
An area’s trespass level for one player.
Over the area’s own (SetAreaTrespass) - "public" for the owner of a house, "prohibited" for someone banished from a
guild hall; an area with no level of its own becomes a trespass zone for this player alone. nil gives them the area’s own again.
Kept while they are connected.
Syntax
Section titled “Syntax”SetPlayerAreaTrespass(pid, name, level)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
name |
string | the area |
level |
string|nil | the trespass level, or nil |
Returns
Section titled “Returns”boolean - true; false and the reason (no such area, an unknown level, not connected)
Example
Section titled “Example”-- the plot's owner is at home thereSetPlayerAreaTrespass(pid, "Plot 7", "public")See also
Section titled “See also”SetAreaTrespass · SetPlayerTrespass · the The map’s areas group of the index
