Skip to content

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).

SetLevelTrespass(on)
Parameter Type
on boolean true on, false off
function OnGameModeInit()
SetLevelTrespass(false) -- a server whose houses all belong to players
end

SetPlayerLevelTrespass · IsLevelTrespassOn · the The map’s areas group of the index