Beta Documentation - Subject to change.

Takes in the Lua control that should be in charge of handling selection and right-clicking for this entity.

Syntax

Lua
function Entity:RegisterForClickHandling(pcEntityElement);

Parameters

pcEntityElement
Type: Control

Remarks

Call this function after creating a new Lua UI control and the system will automatically handle click-selection and right-clicking for you.

See Also