WorldClicker (Daigoro)

Setup:
Add the MouseControlTemplate to a Player Template

Usage:
ToggleMouseControl() - Toggle the script
SetMouseControl(boolean)- Enables or disables the script

There is also a property called "onStart", that enables the script whenever the player (re)spawns

Properties:
range:
range allows to define the interactions range
polling:
polling allows changing how often position changes are processed.
this has no impact on clicks or mousedown/-release.
dragVisual:
this setting doesn’t affect gameplay at all and is only visually
widgetsToHide:
select widgetassets that you want to hide (only widgets on player/user are affected by this)
enablePrint:
enables console output inside the BroadcastToScripts

ENTRY POINTS:
OnMouseClick(player,{clickedObject,clickedObjectPosition,clickedObjectNormal}):
will be called on an entity in range, that the player has clicked on (without moving the mouse between press and release).
OnMouseDown(player,{pressedObject,pressedObjectPosition,pressedObjectNormal}):
will be called on an entity in range, when the player presses on it.
OnMouseUp(player,{pressedObject,pressedObjectPosition,pressedObjectNormal},{releasedObject,releasedObjectPosition,releasedObjectNormal}):
will be called on an entity in range, when the player pressed on something, moved the mouse and then released the button.