Skip to main content

HolsterAction.OnAfterAttack

Declaration#

public virtual void OnAfterAttack(IDamageable target, IDamageSource damageSource, IAttackResult attackResult)

Parameters#

NameDescription
targetObject targeted by attack
damageSourceObject performing the attack
attackResultResult of the attack

Description#

Method to call whenever the player deals damage to another object

Usage#

Example
using NullSave.GDTK;using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public BasicCollisionDamage attackSource;    public BasicDamageable attackTarget;
    public void Example(HolsterAction target, IAttackResult other)    {        target.OnAfterAttack(attackTarget, attackSource, other);    }

}