Is there a way to check if a event player presses a button like “1” or “2”? I know of is button held, but I can only select few buttons like “primary fire” etc.
No currently, there is no key mapping to all keyboard keys/controller buttons binded yet. We can only use the provided key buttons corresponding to a specific ability or interaction sequence like Reloading, Crouch or Jump. But fortunately we can check if some one emotes or communicates a voicline etc. indeed limited to 4 options each, but we can bind these values to key board keys under the option Menu, eg. you can assign the key Z to communicate the voicline or audio sequence Hello, now if whe have in workshop a rule conidition that checks if someone communicates Hello a action in that rule can be triggered, by pressing Z key in a workshop game you apply the above.
Thanks for the response. But I don´t think thats the way to go, if everyone had to assign keys to use an important feature of the game. Ill figure out some other way then.
If you want to explicitly force a button key and map that to execute code with workshop then yes that won’t work the description would need to be changed like if you want a Player to Teleport somewhere on the map and in your context the key P needs to be pressed to do so, you would need to change the instruction from press P to like “Use Voiceline Up to Teleport”, but the key for that voiceline could be anything and differ in depending on the Player’s configuration, the Player would need to know which key he bound to that voiceline or use the communication wheel. That being said its not convenient at the first place cause you need change the instructive descriptions in a HUD or so, but its a working alternative. The way you wanna do it, is requested multiple times but not possible you won’t find another more convenient way. We need to use what we got, the workshop is currently not abitrary.