Add digilines game controller
This node allows players to have their keypresses forwarded to a LuaC, instead of moving the player around. This is intended to be used for making LuaC-based games.
This commit is contained in:
10
README
10
README
@@ -80,3 +80,13 @@ To write a card, send a command in the following format:
|
||||
After sending the write command, swipe the card to be written and the reader will send back the following message:
|
||||
{event = "write"}
|
||||
Both blank and previously written cards can be written to. If the card was not blank, it will be overwritten.
|
||||
|
||||
How to use the game controller:
|
||||
After setting a channel, right-click the controller to start/stop using it.
|
||||
While using a controller, it will send a table with the control inputs, pitch, yaw, look vector, and name of the player using the controller each time one of these values changes, up to 5 times per second.
|
||||
When a player leaves a controller, the string "player_left" is sent.
|
||||
In addition to right-clicking the controller in use to stop using it, the following will also cause a player to stop using the controller:
|
||||
* The controller is moved or removed
|
||||
* The player leaves the game
|
||||
* The player is teleported away from the controller
|
||||
* The controller receives the string "release" on its digilines channel
|
||||
|
Reference in New Issue
Block a user