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 / Displaying a Hud when a key is pressed

Author
Message
John Talyn
18
Years of Service
User Offline
Joined: 10th Sep 2006
Location:
Posted: 30th Sep 2006 21:14
OK I ve read both of the SCANCODEKEYPRESSED=X topics,

I have read but havnt tried it yet how to display a hud in game using a trigger zone that was said in one of the helpfiles.
what i am unsure about is:

I want to make it so in my game when a player press's the F1 button for example, it display's a message in the hud that shows my hud message details what you most do in the game.

like:
press F1 and an image pops up:
Tasks:
1. find the key,
2. turn the power off etc.

how would I go about using that?
I know it has something to do with the SCANCODEKEYPRESSED=X but where about do I put it and such?

(yer I am a noob and I am sure there is a place on the forum that would tell me how to do that but a link to the right topic or somebody to just tell me would be a great help.)

Newbie so sorry
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 1st Oct 2006 03:48 Edited at: 5th May 2007 23:27
This is similar to the code I used in my game "Quarantined"
You'll have to change the Hud_image.dds to the name of your file and change the position of the Hud to your liking, but it'll display your hud for six seconds when the F1 key is pressed.



*** The Object you attach this code to must be dynamic and must be set to Always active!!! you may want to make it immobile too.

Login to post a reply

Server time is: 2024-11-23 01:09:07
Your offset time is: 2024-11-23 01:09:07