Add the MouseControlTemplate to a Player Template
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
range allows to define the interactions range
polling allows changing how often position changes are processed.
this has no impact on clicks or mousedown/-release.
this setting doesn’t affect gameplay at all and is only visually
select widgetassets that you want to hide (only widgets on player/user are affected by this)
enables console output inside the BroadcastToScripts
will be called on an entity in range, that the player has clicked on (without moving the mouse between press and release).
will be called on an entity in range, when the player presses on it.
will be called on an entity in range, when the player pressed on something, moved the mouse and then released the button.