Skip to content

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.

NameTypeDefaultDescription
propPropThe prop.
paramsDamageParamsThe damage parameters.

boolean