PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

BindActivate

Bind an Enum/KeyCode that can be used with an Enum/UserInputType to activate ClickDetector events and Tool objects. When the given key/button is pressed, it fires the Mouse/Button1Down event on the mouse sent to Tool/Equipped. This in turn fires the Tool/Activated event if Tool/ManualActivationOnly is not set to true. For gamepad input, this function is called by the default control scripts in order to bind the ButtonR2 enum/KeyCode.

Note that the Enum/UserInputType specified must be Keyboard or Gamepad1 through Gamepad8 in order to be valid.

Parameters

Name Type Default Description

Must be Keyboard or Gamepad1 through Gamepad8

Unknown

The KeyCode (e.g. ButtonX) to bind

Returns

Return Type Summary