self:set_monitorable

Client

Sets whether the area can be detected by other monitoring areas


Syntax

local status = self:set_monitorable(
    state
)

Parameters

TypeNameDescription
boolstatetrue to allow detection by other areas, false to disallow

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Enable monitorable on an area
local entity = physics.area.create()

entity:set_monitorable(true)

On this page