ItemPlugin.RunCommand
Declaration#
public virtual void RunCommand(string command, Object[] args, Boolean& complete)Parameters#
| Name | Description |
|---|---|
| command | Command to run |
| args | Parameters |
| complete | Complete indicator |
Description#
Run a command
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(GDTKItem target) { bool complete = false; ItemPlugin plugin = target.GetPlugin<ItemPlugin>(); plugin.RunCommand("CommandName", new object[] { "parameter1", 2 }, ref complete); }
}