Add-Ons >> Boards >> Events >> Event Bind Action

Event Bind Action

Uploaded by nul
Events
Event_BindAction.zip
Apr 6th 2016, 9:27 PM
753

Description

Includes two input events and three output events which allow you to trigger events when the player performs certain actions.

Inputs:
onActionDown - When the button is pressed. Works for all actions.
onActionUp - When the button is released. Only works for fire, jump, crouch, and jet.

Outputs:
Bricks:
playerActionBind [list] [cd] - Binds a player's action to the targeted brick(s). When the player does (or stops) that action, onActionDown/Up is triggered on that brick.
playerActionUnbind [list] - Reverses the effect of the above event.
playerActionUnbindAll - Removes every single bind the player has.

[list] contains:
Fire, Jump, Crouch, Jet, Light, PrevSeat, NextSeat, UseTool, UnUseTool, BrickCancel, BrickDownPlate, BrickToward, BrickUpPlate, BrickLeft, BrickDown, BrickRight, BrickRotateCCW, BrickAway, BrickCW, BrickUp, BrickPlant

Note #1: These are bound to the player, not the client. So when the player respawns or dies, all binds are cleared.
Note #2: If an action has a cooldown, onActionUp will only be called if onActionDown was successfully called.

Updates

No updates approved.

Bugs

No bugs reported.
Download
v0.0.0
There are no comments here yet.