self:set_priority
Client
Sets the priority of the area, used to resolve overlapping area override order
Syntax
local status = self:set_priority(
priority
)Parameters
| Type | Name | Description |
|---|---|---|
int | priority | Priority value to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.area.create()
entity:set_priority(1)