SetLevelTrespass
Switches the level’s own trespass areas on or off.
The level’s houses, keeps and camps show the game’s trespass icon (on by default). Off, a place is trespass only where one of the
map’s areas says so (SetAreaTrespass).
Syntax
Section titled “Syntax”SetLevelTrespass(on)| Parameter | Type | |
|---|---|---|
on |
boolean | true on, false off |
Example
Section titled “Example”function OnGameModeInit() SetLevelTrespass(false) -- a server whose houses all belong to playersendSee also
Section titled “See also”SetPlayerLevelTrespass · IsLevelTrespassOn · the The map’s areas group of the index
