<aside> ⚡ script "core_HealScript" (int amount)

</aside>

Usage


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>

Parameters

Return Value

Returns if the player was successfully healed or not.

Example


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
	}
}