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 regeneration script help...

Author
Message
NIlooc223
14
Years of Service
User Offline
Joined: 27th Aug 2010
Location: Heaven
Posted: 26th Dec 2011 21:16
I do not want the players health to regenerate unless if they dont get hurt for 5 secs and I wasnt it to take another 5 to fully regenerate...

This script i'm using regenerates there health even when there being attacked making it impossible for them to die. And then it takes less than 2 seconds to regenerate. heres the script below...



Your signature has been erased by a mod - no affiliate links thanks
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 26th Dec 2011 21:25
You should take a look at and edit this script by Plystire (the final one is halfway down the page), it should help you along your way:

http://forum.thegamecreators.com/?m=forum_view&t=127488&b=23

Happy to help,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 630 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
NIlooc223
14
Years of Service
User Offline
Joined: 27th Aug 2010
Location: Heaven
Posted: 26th Dec 2011 21:37
I do not have plys mod as i'm currently running on V119 beta 4

Your signature has been erased by a mod - no affiliate links thanks
NIlooc223
14
Years of Service
User Offline
Joined: 27th Aug 2010
Location: Heaven
Posted: 26th Dec 2011 22:47
I want the script to add 1 health every second I also want it to wait a total of 5 seconds before this begins... But I don't want it to start adding the players health till they have not got hurt for 5 more seconds.... this is what I have

;Artificial Intelligence Script



This is giving the player health regen after 5 seconds if players health is below 100... But it just gose straight up to 100 in less than 2 seconds. I want it to take a total of 100 seconds to get players health from 0 to 100. But no health regeneration to happen till the player has not been hurt for 5 seconds. Please help!

Your signature has been erased by a mod - no affiliate links thanks
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 27th Dec 2011 06:23
You don't need Ply's Mod anymore. The required actions and conditions have been added to vanilla FPSC.

- Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 630 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
NIlooc223
14
Years of Service
User Offline
Joined: 27th Aug 2010
Location: Heaven
Posted: 27th Dec 2011 19:06
What must I change to make it do health instead of armor?


Your signature has been erased by a mod - no affiliate links thanks
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 27th Dec 2011 21:28
so you want health to regenerate after a set time? I will work on integrating this idea into my script pack!

I appear to have burst into flames...
NIlooc223
14
Years of Service
User Offline
Joined: 27th Aug 2010
Location: Heaven
Posted: 27th Dec 2011 21:39
Yes after a set amount of time WITHOUT being hurt

Your signature has been erased by a mod - no affiliate links thanks
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 27th Dec 2011 23:17 Edited at: 28th Dec 2011 00:35
This should work. Just assign this to a triggerzone. All credit goes to Plystire.



Happy to help,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 630 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
NIlooc223
14
Years of Service
User Offline
Joined: 27th Aug 2010
Location: Heaven
Posted: 28th Dec 2011 03:10
Thank you... Im going to learn how to script I just started reading the community guide.

Your signature has been erased by a mod - no affiliate links thanks

Login to post a reply

Server time is: 2024-11-24 04:51:32
Your offset time is: 2024-11-24 04:51:32