Author Topic: Event Idea: "OnBrickControl"  (Read 336 times)

This addon would consist of Output and Input events that check if a player is using brick control keybinds(Rotate Left, Move left, Move up, Move down, 1/3 move up, etc.), similar to how VCE checks if a player is firing(IfValue - <Var:pl:firing>)

Events would look something like this:
(0)[0] OnRelay - Client - IfBuildControl = CONTROLINPUT [##]
(1)[0]OnBuildControlTrue - Client - Centerprint [You are using CONTROLINPUT]
(2)[0]OnBuildControlFalse - Client - Centerprint [You are not using any build controls!]

KEY:
IfBuildControl = If the player is using any building controls, check this
CONTROLINPUT = Input box / dropdown. Will contain "RoateLeft","MoveLeft","MoveDown 1/3", etc.
[##] = The events that will be activated. Just like prompt events, or VCE event activations.
OnBuildControlTrue = If the key IS BEING PRESSED
OnBuildControlFalse = If the key IS NOT BEING PRESSED


Here is a working example.
(0)[0] OnRelay - Client - IfBuildControl = MoveLeft [1 2]
(1)[0]OnBuildControlTrue - Client - Centerprint [Moving Left...]
(2)[0]OnBuildControlFalse - Client - Centerprint [You are not using any build controls!]


Can this be done? Thanks for taking the time to read this!

yea it could be done, although couldn't it just be a VCE expansion rather than a separate addon?

See the keybind event and ask them to add this rather than making another add-on.

What I'm assuming is that you want something to be set to true if the client is using any of the brick controls, then set to false when they stop.

This isn't exactly doable. The brick controls don't have an on/off state on the server side. Just one shots.