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

TypeNameDescription
intpriorityPriority value to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the priority of an area
local entity = physics.area.create()

entity:set_priority(1)

On this page