Let PBs listen to keyboard bindable player actions
It could be very useful if PBs could listen for specific player actions. Usually those actions have some keys assigned, for example WASD, Q, E, Y, Z, C, SPACE, P, LShift at least in some cases F. Not saying that everything should be available, and especially it should not be a full blown keyboard listener as that would become security issue, just gameplay related actions. Also events triggered should carry some context information, like was F pressed while in camera/cockpit/etc
The only HUD related shortcut I would love to have possibility to listen - is Shift+ (for toolbar page switching). That could allow to get rid of walls of LCDs explaining purpose of each toolbar action in each page. When player switches page, we could update contents of single LCD with relevant to that page info.
I believe this feature could open doors for much more flexibility and higher variety of creations, more efficient scripts, also quite often less bulky grids. Some other examples of usage:
- WASD, C and SPACE would help for creations which movement rely on rotors and pistons (mechs, tanks, one engine hovering ships, etc);
- Y could help to detect when grid is powering up, so some boot-up fun could be done, like boot screens in LCDs;
- F when pressed in camera could execute some code, like parking, locking and powering down camera
and so on..
There is wonderful Digi's mod attempting to tackle this needs, but these things should really be part of vanilla. Link to mod: http://steamcommunity.com/sharedfiles/filedetails/?id=655948251
shared this idea 20/08/17 16:32