Skip to main content

ItemPlugin.RunCommand

Declaration#

public virtual void RunCommand(string command, Object[] args, Boolean& complete)

Parameters#

NameDescription
commandCommand to run
argsParameters
completeComplete 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);    }
}