Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / help with a script please..!

Author
Message
SilverMasters
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location: india
Posted: 26th Oct 2007 12:11
can a script be made that will show a hud when we press "n" and also change the ambient colour to green? and again when we press"n" then the ambient wil reset to normal and the hid wil fade out..! plz plz help me..!

HOPE has Wings
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 26th Oct 2007 12:50 Edited at: 26th Oct 2007 12:53
Quote: "can a script be made that..."


Yes, a simple <N>ightvision script can be made!
Search it
It will only work indoors though since it does not affect the SkyBox.

Don't forget to visit Conjured Entertainment
SilverMasters
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location: india
Posted: 26th Oct 2007 12:53
i searched it bt nothing seems to work properly in those script...

HOPE has Wings
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 26th Oct 2007 13:44 Edited at: 26th Oct 2007 13:53
Here is a script that does what you requested.



Of course, you need to change the hud to whatever you want as well as relocate it on the screen. (state=0)
You also need to place an entity in your map, set its STATIC MODE to NO, and set it's Main AI to this script.

You might ask "why do you have state 2 and state 5 doing a scancodekeypressed=0?"
The answer is because you are using the same key to toggle, and if you didn't check for the key release then it would malfunction.
If you want to go from dark to light then add AMBIENCE=X where X is a value between 0 and 100. (not 0-255 like ambience colors)
This should be enough to get you started.
I hope this helps.

Don't forget to visit Conjured Entertainment
SilverMasters
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location: india
Posted: 26th Oct 2007 13:55
OMG thankx CE...i am gonna try this now..!

HOPE has Wings

Login to post a reply

Server time is: 2024-11-23 23:49:18
Your offset time is: 2024-11-23 23:49:18