Scripts / Nightvision: How to change the "E" to "N" for activation (from the GameGuru store)

Author
Message
R.E.Z.
9
Years of Service
User Offline
Joined: 9th Apr 2015
Location:
Posted: 24th Apr 2015 18:53
Hello,

I tried to figure out, how to change the nightvision-script to using a different letter for activation:
F.e. "N" instead of "E".
Important is, that the new letter isnt used for any other action (movement, etc.)

I went trough the whole script and exchanged ""Press E to put night vision goggles on" and all the "g_KeyPressE" but could not get it going.

The purpose to change the letter would be to avoid, that all the time You do an interaction (picking up items, opening doors,...) the nightvision turns off and on again.

Might someone know, how to set this purpose up right?
That would be great.

Regards,
R.E.Z.
PM
Avram
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Serbia
Posted: 24th Apr 2015 19:05
Replace all "g_KeyPressE == 1" with "GetInKey() == 'n'" (without quotes)

Or even better, with: (GetInKey() == 'n' or GetInKey() == 'N')
R.E.Z.
9
Years of Service
User Offline
Joined: 9th Apr 2015
Location:
Posted: 25th Apr 2015 12:06 Edited at: 25th Apr 2015 19:25
Hello Avram,

thank You for the help.
using "GetInKey() == 'n'" works.
Quitting Nightvision works now not so easy. I do have to press several times "N".
And I do receive a short flickering.
But finally it works
Thank You

Regards,
R.E.Z.
PM
zaxgee
9
Years of Service
User Offline
Joined: 18th Apr 2015
Location:
Posted: 3rd May 2015 23:13
Ah thanks for making the post R.E.Z I was messing about as well on this. Read my mind!
PM

Login to post a reply

Server time is: 2024-05-07 22:00:51
Your offset time is: 2024-05-07 22:00:51