self:set_monitorable
Client
Sets whether the area can be detected by other monitoring areas
Syntax
local status = self:set_monitorable(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to allow detection by other areas, false to disallow |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.area.create()
entity:set_monitorable(true)