#4

theres an invisible object somewhere, spawn it as pickup at the fires location, and check for any player touching it. if so, decrease his health by 5 works, but the pickup code gets called not often enough, so a timer would make this a bit more precise (lose 0.1 HP each 100 ms for like 2 seconds, instead of losing 10 HP each time the pickup "triggers" after a few seconds)...
Reply


Messages In This Thread
Fire - by [Lsrcr]Policajac - 20.12.2011, 21:05
Re: Fire - by park4bmx - 20.12.2011, 21:09
Re: Fire - by Steven82 - 20.12.2011, 22:07
Re: Fire - by Babul - 20.12.2011, 23:36
Re: Fire - by [Lsrcr]Policajac - 21.12.2011, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)