self:set_monitoring
Client
Sets whether the area monitors for other bodies/areas entering or leaving it
Syntax
local status = self:set_monitoring(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to enable monitoring, false to disable |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.area.create()
entity:set_monitoring(true)