Use Key (v1.5)by PortDescriptionAs requested by
IkeTheGeneric in
this thread, this is an add-on which, for clients running it, adds an option in the "Action" section of the Controls menu named "Use Key". Pressing this key while playing on a server that is also running this add-on will cause it to trigger the "onUse" input event on the brick you are aiming at.
In addition, this provides a RTB preference named "Activate Condition" in the "Use Key" section which allows you to configure the Use Key to trigger "onActivate" together with "onUse" on certain types of bricks specified.
Developer Notes:
- This works for any object, not just bricks. To take advantage of this, create/package the function ::onUse for the class name of the type of object you wish to interface with, such as AIPlayer::onUse. There is one argument, the player that activated it.
Test ReportThis add-on has been tested on a default Blockland installation with default add-ons, and worked flawlessly without any errors.
DownloadsSystem_Use.zip (1.6KB) from localhostr.com.
InstallationClient: Place System_Use.zip in your Add-Ons folder and restart Blockland.
Server: Place System_Use.zip in your Add-Ons folder, restart Blockland and enable it when starting a server.