<aside> ⚡ script "core_HealScript" (int amount)
</aside>
A standardized healing script which performs a percentage heal on the calling player, dealing with classes of differing HP values.
<aside> 🚨 This script currently does not check if the player is dead, so make sure to check for that manually to avoid giving health to dead players!
</aside>
amount
: int - The percent of HP to healReturns if the player was successfully healed or not.
The inventory actor below is given by a successful E Tank use to heal 100% of the player’s HP.
actor ETankHeal : CustomInventory
{
States
{
Pickup:
TNT1 A 0 ACS_NamedExecuteWithResult("core_HealScript", 100)
stop
}
}