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 / Hud display

Author
Message
Asepl
13
Years of Service
User Offline
Joined: 2nd Oct 2011
Location: Poland
Posted: 16th Feb 2012 19:03
Hey.
Basically, I've began to "script" in FPSC around 2 days ago, so don't be mad about my numerous mistakes, please

The script is supposed to make a picture appear, when you're within 50 units from the entity, and fadeout, when pressed "enter".
However, when entering the trigger zone, some red-white hud fills the whole screen, and makes "lives" and "hp" dissapear. When I press "enter", it dissapears, but the "lives" and "hp" remain hidden.

Have you got any tips on how to fix this?

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 17th Feb 2012 04:56 Edited at: 17th Feb 2012 04:57
First, good attempt. May I suggest that instead of putting the image in the texturebank\... section, place it in "languagebank\english\gamecore\huds\YOURGAMENAME" folder. Try and keep the texturebank for entity and segment textures.

Here is a revamp of your script:



So basically hud will show when player is within the distance, press the action key and the hud fades out. Once player moves away by the distance it goes back to state 1 and waits.


Twitter: @NFoxMedia
Asepl
13
Years of Service
User Offline
Joined: 2nd Oct 2011
Location: Poland
Posted: 17th Feb 2012 15:35
Thanks for help Works.

Login to post a reply

Server time is: 2024-11-24 01:19:31
Your offset time is: 2024-11-24 01:19:31