Dota 2 Workshop Tools/Scripting/API/Convars.RegisterCommand: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Dota_Lebot push: Updated Page)
Line 1: Line 1:
{{stub}}
{{Note | This page is automatically generated.  Any changes may be overwritten}}
 
== Function Description ==
 
 
''' void RegisterCommand(string ''variableName'', handle ''function'', string ''helpText'', int ''flags'') '''
 
''RegisterCommand(name, fn, helpString, flags) : register a console command.''
 
 
 
== Parameters ==
{| class="standard-table" style="width: 50%;"
! 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
|}

Revision as of 23:22, 8 August 2014

Note.pngNote: This page is automatically generated. Any changes may be overwritten

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