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 / how to make a hud show up when a certen amount of health is lost

Author
Message
a great idea READ THIS
15
Years of Service
User Offline
Joined: 29th Apr 2009
Location:
Posted: 3rd Jan 2010 21:49
ok i tried to make a script for it but it did not work and i deleted it so i was wondering how to do it. i just need to no the script. all it does is make blood on the screen like the stock one but i have a better one. or at least i think its better

Director
Snap
Old But Still Kickin
16
Years of Service
User Offline
Joined: 29th Feb 2008
Location: U.S.A.
Posted: 4th Jan 2010 14:25 Edited at: 4th Jan 2010 14:29
not sure what pic you will use or which state you use either but something like this should do it.


; Setup Level Stats
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\your pic.pic,hudname=yourhudname,hudmake=display,hudhide=1

; Main Game
:state=1,plrhealthless=20.5,plrhealthgreater=0:hudreset,hudshow=yourhudname

hope it works for ya

Never give up trying. Just try it another way that works for you.
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 4th Jan 2010 15:53
Put the following script in a triggerzone:

:state=0:hudreset,hudx=@,hudy=@,hudimage=gamecore\huds\@,hudname=healthHUD,hudmake=display,hudhide=1,state=1

:state=1,plrhealthless=70:hudreset,hudshow=healthHUD
:state=1,plrhealthgreater=69:hudunshow=healthHUD

You need to fill in the @ areas with your own parameters. Setting hudx and hudy to 50 will center the image. You also need to specify your hud.


I USED TO BE MARC STEENE
a great idea READ THIS
15
Years of Service
User Offline
Joined: 29th Apr 2009
Location:
Posted: 4th Jan 2010 17:59
thanks i didnt put the :hudreset thing i think that was the prob

Director
Snap

Login to post a reply

Server time is: 2024-11-25 03:56:28
Your offset time is: 2024-11-25 03:56:28