Differentiating between health and armor
#8

You will have to store the armour amount, because in OnPlayerTakeDamage, 'the damage was already taken' so to speak, so checking armour then and 5 seconds later wouldnt show any difference.

Instead, save armour when you set it, then everytime it changes in OnPlayerTakeDamage

Heres a bit of code to get you going:
http://pastebin.com/g9MC4EMR

In all honesty i didn't actually test it though, but see no reason why that approach wouldn't work
Reply


Messages In This Thread
Differentiating between health and armor - by Puppy - 28.06.2015, 00:35
Re: Differentiating between health and armor - by M4D - 28.06.2015, 00:46
Re: Differentiating between health and armor - by kyriakos587 - 28.06.2015, 00:52
Re: Differentiating between health and armor - by Pottus - 28.06.2015, 01:54
Re: Differentiating between health and armor - by eddiemaddox - 28.06.2015, 04:06
Re: Differentiating between health and armor - by Ritzy2K - 28.06.2015, 09:45
Re: Differentiating between health and armor - by Puppy - 29.06.2015, 22:40
Re: Differentiating between health and armor - by Suicidal.Banana - 30.06.2015, 00:14

Forum Jump:


Users browsing this thread: 1 Guest(s)