You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to know when a player is healed from any source, by how much and what by. I'm not sure the best way to go about this. Either by adding an additional function or extending on an existing function like player_ondamage ?
Example:
functionplayer_onheal( player, damageinfo? ) -- something like damageinfo?localHeal=damageinfo:GetHeal() -- Get Health AmountlocalArmor=damageinfo:GetArmor() -- Get Armor amountlocalHealer=damageinfo:GetHealer() -- Object or person doing the healinglocalItem=damageinfo:GetInflictor():GetClassName() -- Item doing the healing: Backpack, medkit, dispenser, ect.end
The text was updated successfully, but these errors were encountered:
It would be nice to know when a player is healed from any source, by how much and what by. I'm not sure the best way to go about this. Either by adding an additional function or extending on an existing function like
player_ondamage
?Example:
The text was updated successfully, but these errors were encountered: