StatModifierPlugin.AllowAction
Declaration#
public virtual void AllowAction(string action, Object[] args, Boolean& cancel)Parameters#
| Name | Description |
|---|---|
| action | Command to run |
| args | Parameters |
| cancel | Cancel 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); }
}