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 / Wall buy Help script

Author
Message
thedoctor989
6
Years of Service
User Offline
Joined: 6th Mar 2018
Location: Dimension 669
Posted: 4th May 2018 15:34 Edited at: 4th May 2018 15:37
so i have (using a random pickup script) altered it slightly and i am trying to make it so when the player hits F the weapon is picked up and in exchange for Health the player obtains the weapon!
"I'd Rather be hated for who i am, then Loved for who i am not"- Kurt Cobain

Attachments

Login to view attachments
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 4th May 2018 23:08
@ thedoctor989 Very good, you almost got it. Just one little error.
If you look at "state=12" it loops back to "state=12" in an endless cycle. Easy to miss.
Here it is fixed. Couple things first, try not to use caps in scripts unless absolutely necessary ( can cause problems )
I changed "plraddhealth" to "plrsubhealth" to it's more uniform ( Change the sub health amount to meet your needs )

You'll noticed all the "states" are at "state=10" until something happens. The player can walk away and return and the hud is ready again.
I increase the "hud" size larger, was to small to see
Best,


My games never have bugs. They just develop random features..
Lots and lots of random features...
thedoctor989
6
Years of Service
User Offline
Joined: 6th Mar 2018
Location: Dimension 669
Posted: 7th May 2018 13:03
thanks for the help!
"I'd Rather be hated for who i am, then Loved for who i am not"- Kurt Cobain

Login to post a reply

Server time is: 2024-04-26 13:49:51
Your offset time is: 2024-04-26 13:49:51