30.06.2015, 00:14
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
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