Skip to main content

HolsterAction.PerformAction

Declaration#

public virtual void PerformAction()

Description#

Perform the default action

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(GDTKItem target)    {        HolsterAction action = target.GetPlugin<HolsterAction>();        if (action != null)        {            action.PerformAction();        }    }
}

Declaration#

public virtual void PerformAction(string actionKey, Object[] args)

Parameters#

NameDescription
actionKeyKey of the action
argsParameters

Description#

Perform a specific action

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour {        public void ExampleMethod(GDTKItem target, string actionName, object[] args)    {        HolsterAction action = target.GetPlugin<HolsterAction>();        if (action != null)        {            action.PerformAction(actionName, args);        }    }}