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 Product Chat / Display a hud when key is pressed?

Author
Message
King Of Khaos
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location: Not ALL the windows were locked...
Posted: 3rd Dec 2010 03:53
I want to make a hud appear when the "V" key is pressed, but i've searched and i can't find the answer anywhere. I think i have an idea of what the script would look like, i'm just wondering what i would apply it to. Would i need to place a trigger zone on the player start that activates right when the game begins, and assign the scriptt to that? How would i do this?

Cheers, Jake
------------------------------------------------------------
-The Clarkson Residence- (WIP)
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 3rd Dec 2010 04:01 Edited at: 3rd Dec 2010 04:03
You probably would want this in the script section.

Here is a script I use for one of my developments. Player collects a book and can view it by pressing V. Notice I define two huds (book1 and book2), which means when the player presses V, they view page one of the book, press V to view page two, then press V to close the book (hide the hud). Also once they hit the zone, they can access this book *anywhere* in the level. I attach this script to a trigger.



Feel free to modify it to your needs.

- BlackFox

RPG Mod- Create a world full of adventure
King Of Khaos
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location: Not ALL the windows were locked...
Posted: 3rd Dec 2010 04:25 Edited at: 3rd Dec 2010 04:38
Thank you for this BlackFox, you're very generous!

EDIT: And next time i have a question like this, i'll post it in the scripts board. Thanks.

Cheers, Jake
------------------------------------------------------------
-The Clarkson Residence- (WIP)
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 3rd Dec 2010 05:22
No problem. It's good to pass on the knowledge from time to time.

- BlackFox

RPG Mod- Create a world full of adventure

Login to post a reply

Server time is: 2026-07-01 22:13:11
Your offset time is: 2026-07-01 22:13:11