Extra Health
Add more health than normal
You wanted to create a kind of boss ped, with more health than just 250 hitpoints? You can do it now with this script!
I just had this idea when my multimod server had Misterix Mods and I wanted to give them more health.
I decided to share this script because it is really useful, I think. Hope you think so, too
And this post is for you guys, to think about it, what could I add, or delete, etc...
How to use
1. Create a ped.
2. exports.extrahealth:setElementExtraHealth(thePed, value)
3. Shoot to this ped!
Exported Functions
exports.extrahealth:setElementExtraHealth ( element, float value )
exports.extrahealth:getElementExtraHealth ( element )
exports.extrahealth:isElementWithExtraHealth ( element )
exports.extrahealth:addElementExtraHealth ( element, float value )
exports.extrahealth:takeElementExtraHealth ( element, float value )
exports.extrahealth:removeElementExtraHealth ( element )
exports.extrahealth:setElementInvulnerable ( element, bool state )
Events
onPedDamage
Function Parameters:
Attacker - The element that was attacking the ped.
Weapon - An integer representing the weapon that damaged the ped.
Bodypart - An integer indicating the body part where the ped got damaged.
Loss - A flotating point number that shows the damage the ped received.
Source:
The source of this event is the ped that got damaged.
Cancel Event:
This won't do anything, isn't like onClientPedDamage huh.
Download The Resource