TruWorlds

ClickDetector

Inherits: Instance

ClickDetector allows player mouse interactions with a parent PhysicsInstance.

Properties

MaxActivationDistance int

How far away the player can be from the ClickDetector to click it.

Signals

MouseClick Player

Event fired when the ClickDetector is left-clicked, with the Player who clicked. Fires on the server (authoritative) and on the clicking client.

MouseHoverEnter

Event fired when the mouse begins hovering the ClickDetector (client-side, local player).

MouseHoverLeave

Event fired when the mouse stops hovering the ClickDetector (client-side, local player).

RightMouseClick Player

Event fired when the ClickDetector is right-clicked, with the Player who clicked. Fires on the server (authoritative) and on the clicking client.