<aside> ⚡ script "core_damageowner" (int amt, int targetptr, int ownerptr)
</aside>
Similar to core_damageactor
but if the target and owner are the same, or the target and owner are on the same team, the damage is owed to the world instead. This is useful for creating hazards, or damaging abilities that are dangerous to everyone. Type
is also determined by appending “HazardCredit_”
to the beginning of the calling actor’s name.
amt
: int - Amount of damage to deal.target
: int - Actor pointer which points to the person which should be damaged.owner
: int - Actor point which points to the person dealing the damage.