Dota 2 Workshop Tools/Scripting/API/Convars.RegisterCommand: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
||
| Line 1: | Line 1: | ||
{{Note | This page is automatically generated. Any changes may be overwritten}} | {{Note | This page is automatically generated. Any changes may be overwritten}} | ||
[[Category:Dota2Function]] | |||
[[Category:Convars]] | |||
== Function Description == | == Function Description == | ||
Revision as of 12:25, 9 August 2014
Function Description
void RegisterCommand(string variableName, handle function, string helpText, int flags)
RegisterCommand(name, fn, helpString, flags) : register a console command.
Parameters
| Type | Name | Description |
|---|---|---|
| string | variableName | No Description Set |
| handle | function | A lua function to call when this concommand is run |
| string | helpText | No Description Set |
| int | flags | FCVAR flags |