BlockFriendlyDamage
Intended to be used as a BeforeTakeDamage hook for a planted interactable. It will check the prop’s Extras field for an associated player and prevent damage to the props from allies.
Returns true if damage should be allowed, i.e, hostile damage source. Also returns true if there is no associated player with either the damage or the prop.
Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
prop | Prop | The prop. | |
params | DamageParams | The damage parameters. |
Returns
Section titled “Returns”boolean