Skip to main content

StatModifierPlugin.AllowAction

Declaration#

public virtual void AllowAction(string action, Object[] args, Boolean& cancel)

Parameters#

NameDescription
actionCommand to run
argsParameters
cancelCancel action indicator

Description#

Check if an action is allowed

Usage#

Example
using NullSave.GDTK.Inventory;using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(StatModifierPlugin target, GDTKItem item)    {        bool cancel = false;        target.AllowAction("attach", new object[] { item }, ref cancel);    }
}