Jump to content
Sign in to follow this  
ELRICOFATAL

How to add new key option

Recommended Posts

Hello.

I would need information on how to add a second function to a key.
As for MP, the police turn on the siren
I'd like to know what I need to do to add this option to the modification (not necessarily .ogg playback)

i mean when you press in MP as police button "J" then lights was worked normal but in the same time is turned sound .ogg (siren) specific one sound

and i would know how to do that :huh:


DO NOT USE IN MP ! ! !
DO USE SP ONLY !

Edited by ELRICOFATAL

Share this post


Link to post
Share on other sites
Guest Froncy

Hi @ELRICOFATAL

You can't add new key,you can only change the control keys like w,a,s,d.This key you are talking about (j) is special for game moderators.Also i think devs added this.

Share this post


Link to post
Share on other sites

I just want to know how to add a second option to the key ...

Like in exp Police turned on/off siren as press button from long lights "J"

i want know how to do that
(i needed it in SP to mod but not to play .ogg/ just to turn on diffrend lights when you press J )

Share this post


Link to post
Share on other sites

You'll need to make a program that listens to the keypress and then does the appropriate action.

While hooking into the game is possible, that is a lot of work, and I would instead recommend to just have a separate program running in the background that listens for the event. Would be pretty much the same experience, but with a lot less work.

Share this post


Link to post
Share on other sites
On 2/4/2018 at 12:58 PM, HumaneWolf said:

You'll need to make a program that listens to the keypress and then does the appropriate action.

While hooking into the game is possible, that is a lot of work, and I would instead recommend to just have a separate program running in the background that listens for the event. Would be pretty much the same experience, but with a lot less work.

so you have ruining on server BC program / script with one hook hey and do action like play .ogg ?

Share this post


Link to post
Share on other sites
10 hours ago, ELRICOFATAL said:

so you have ruining on server BC program / script with one hook hey and do action like play .ogg ?

No, not our server. Our client listen for keypresses while you are playing and you are in game, that's how the siren on J works, opening the chat on Y, opening tab, etc. It's just doing different actions based on which key.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...