HolsterAction.RunCommand
#
Declarationpublic virtual void RunCommand(string command, Object[] args, Boolean& complete)
#
ParametersName | Description |
---|---|
command | Command to run |
args | Parameters |
complete | Complete indicator |
#
DescriptionRun a command
#
Usageusing 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); }
}