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 / Health HUD script help

Author
Message
Tomahawk
11
Years of Service
User Offline
Joined: 16th Dec 2012
Location: Where do you think I live?
Posted: 21st Mar 2013 16:38 Edited at: 21st Mar 2013 16:47
I have decided to bite the bullet and learn how to script, I started with something simple, A script that when the player health was below X it would show a HUD and if players health was greater then X it would disappear. So instead of being shoot the eyehud flashes up and then disappears, it stays until a player has all of his health back. This is what i have so far.

I would profere if someone would walk me through the process and show me my errors so i can learn how to do it myself.

Thanks for any help.
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 21st Mar 2013 17:19
Quote: "I have decided to bite the bullet and learn how to script"

Very good
Of course I will help you as far as I can and also a lot of other persons in this community will help you out.
As far, you change hudshow and hudunshow.


As a small tipp:
Use fpi pad and my latest condition and action update(last page of fpi pad thread). It is very helpful and mention a lot of mistakes.

Corno_1


ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 21st Mar 2013 19:00 Edited at: 21st Mar 2013 19:04
@Corno_1
This is one I use that resets when health is back up.


@Tomahawk
Take a look at mine and note differences.Use the red,green&blue only if you need to adj. color/hue. X&Y size only if you need to adj. image size. Also I dont have an image of your hud so I cant tell, but you didn't say what type it is (ie.eyehud.dds)
The official guide really explains it better.
Oh yeh, notice the plrhealthgreater & healthlesser than settings when hud shows/or not. All of a sudden it makes sense.
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 21st Mar 2013 19:58
Quote: "This is one I use that resets when health is back up."

I know. I create a lot such scripts, even in my beginning time. But it does not help him, if I do such a simple work for him. I just correct his command mistake, nothing more. I also must say, I never look into the official guide, each person have other learn practices. I learn by doing

Nevertheless:
@ncmako: Correct me always if I make a mistake, ok dude?


Tomahawk
11
Years of Service
User Offline
Joined: 16th Dec 2012
Location: Where do you think I live?
Posted: 22nd Mar 2013 14:33
The script still isn't working, i want the HUD to stay on screen until he regains his health but it still flashes up. Any more help will be appreciated.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 22nd Mar 2013 16:00 Edited at: 22nd Mar 2013 16:04
@ Corno_1 Na,your better than me at scripts. I see your work. Its great But always willing to help.

@ Tomahawk
Just checked my script and it works perfect. Made a quick vid.

As I stated before, it would really help if you posted what your working with so far as to help you.

Login to post a reply

Server time is: 2024-11-23 17:06:23
Your offset time is: 2024-11-23 17:06:23