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 Product Chat / Auto Health Recovery?

Author
Message
Ibby
16
Years of Service
User Offline
Joined: 28th Nov 2009
Location:
Posted: 29th Nov 2009 01:20
Hello.
I wanted to know is there any way to implement an auto health recovery system like in Call of duty. If not are there health packs or something i can put in. Im pretty new to this so i don really know much and The auto Health recovery thing is the main one i want.
Can anyone tell if it can be done and how. Thanks alot
Doomster
18
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Germany
Posted: 29th Nov 2009 01:52 Edited at: 29th Nov 2009 01:54
Surely, here's an auto-heal system for you:

Main script:


Activation script:


Deactivation script:


It's activated by default and will recover 1 Health every 5 Seconds, you might want to tweak the values, check the "timergreater" (the waiting-time), "plraddhealth" (the amount of health to add) and "plrhealthless" (only adds health if the health is less than X) commands.

You only have to save the scripts as *.fpi files and move them into your "scriptbank" folder (inside C:\Program Files\The Game Creators\FPS Creator\files), you can load all scripts into triggerzones then.

-Doomster

GreenDixy
17
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 29th Nov 2009 02:07
lol you beat me to it was just about to post a auto regain script

===================
No life, Lots of love, 2 Kids, God save me LOL
Ibby
16
Years of Service
User Offline
Joined: 28th Nov 2009
Location:
Posted: 29th Nov 2009 17:26
Thanks soo much you guys you've been a great help

Login to post a reply

Server time is: 2026-07-23 14:40:36
Your offset time is: 2026-07-23 14:40:36