Scripts / Hunger script

Author
Message
SS slothman
9
Years of Service
User Offline
Joined: 5th Nov 2014
Location: UK
Posted: 2nd Jan 2015 10:38
i need a script that reduces the players health gradually over time.
PM
Angiel
9
Years of Service
User Offline
Joined: 21st Dec 2014
Location: Italy
Posted: 3rd Jan 2015 10:23
For my game, I made this script. I hope you go well.
1 minutes of play is equal to 1 hour of real time.
At hours 2 if hunger is equal to 5, the player loses 50 of health.



sorry for my bad English, I write from Italy.
AuShadow
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd Dec 2013
Location: Australia
Posted: 3rd Jan 2015 13:23 Edited at: 3rd Jan 2015 13:28
Made this one a while back, just needs an _init function and good to go for hunger and thirst\r\n



Edit just read through it and the addplayerhealth also needs to be updated to use the HurtPlayer(1) aswell, will do it tomorrow if I get time



http://fpscrforum.thegamecreators.com/?m=forum_view&t=208852&b=2

PC Specs: Windows 7 home 64-bit, Amd 7900 3gb DDR5 graphics, 8gb DDR3 Ram, Intel i7 3.4ghz
SS slothman
9
Years of Service
User Offline
Joined: 5th Nov 2014
Location: UK
Posted: 3rd Jan 2015 16:09
"Made this one a while back, just needs an _init function and good to go for hunger and thirst\r\n

Edit just read through it and the addplayerhealth also needs to be updated to use the HurtPlayer(1) aswell, will do it tomorrow if I get time"
so will the current script not work?
PM

Login to post a reply

Server time is: 2024-05-07 16:47:32
Your offset time is: 2024-05-07 16:47:32