Skip to main content

Merchant.RunPluginCommand

Declaration#

public virtual void RunPluginCommand(GDTKItem item, string command, Object[] args, Action onCompleteCallback)

Parameters#

NameDescription
itemItem containing plugin
commandCommand to run
argsParameters to send to commmand
onCompleteCallbackAction to invoke upon completion

Description#

Run a plugin on an item

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target, GDTKItem other)    {        target.RunPluginCommand(other, "CommandName", new object[] { "Paremeter1", false }, null);    }
}