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 / Ammo Counter Question

Author
Message
foobly
17
Years of Service
User Offline
Joined: 10th Feb 2008
Location:
Posted: 11th Feb 2008 01:37
Is it possible to make the ammo counter only appear when you press a button that "checks" the ammo, ala [i]Condemned[i]?

Thanks.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 11th Feb 2008 07:10 Edited at: 11th Feb 2008 07:43
Yes, it is possible to make the ammo counter only appear when you press a button...

You're Welcome

Now, I'm no mind reader, but I'm guessing your next question would be how. hmmm...
You can manually edit the setuplevel.fpi file after you build the game.
Just add a ...

hudname=whatevernameyouwant (since it is numeric I used a number for the name)

...to the hud used for the counter.
(be sure to add it just before the humake=numeric and not after)
You would use the...

hudshow=whatevernameyouwant

...and...

hudunshow=whatevernameyouwant

... in your FPI scipt of a dynamic entity that uses a...

scancodekeypressed=x

...condition to call the actions.

You are new, so none of that probably makes any sense.
So, read the manual that came with FPSC in the Docs folder.
Then, read Nickydude's Guide found in the stickies here in the forums.
Once you have read those then this will make more sense.
Good Luck, and welcome to the forums.

I do not remember ever trying this before, but I tested it for this request and it worked great.
I think I will incorporate this in my next game as a toggle rather than a hold-for-action key.
Maybe even with a timer with a fadeout.

Quote: "ala Condemned"

Never heard of it. I'll check it out.
Condemned: Criminal Origins
Cool

Don't forget to visit Conjured Entertainment

foobly
17
Years of Service
User Offline
Joined: 10th Feb 2008
Location:
Posted: 12th Feb 2008 02:32
Thanks Conjured Entertainment. I'll read that guide, and maybe my next scripting problem I will be able to figure out on my own

Login to post a reply

Server time is: 2025-05-22 03:11:13
Your offset time is: 2025-05-22 03:11:13