Changes

Jump to navigation Jump to search
undocument deprecated trigger method, + see-also
Line 55: Line 55:  
</pre>
 
</pre>
   −
==Trigger a command==
+
==See also==
You can programmatically trigger a command through the console API by specifying its name and arguments:
+
* [[Modding:Modder Guide/APIs/Integrations|Integration APIs]]
<source lang="C#">
  −
this.Helper.Commands.Trigger("player_setmoney", new[] { "5000" });
  −
</source>
  −
 
  −
Note that this is rarely useful. You won't receive any text the command outputs, and it's better to use [[../#Mod-provided APIs|mod-provided APIs]] for integrations.
 
translators
8,447

edits

Navigation menu