Lua API/System/AddCCommand
Материал из CryWiki Russia
(Различия между версиями)
Alex626 (Обсуждение | вклад) |
Alex626 (Обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
- | + | '''[[Lua_API#System|System]].AddCCommand([[#arg1|string]], [[#arg2|string]], [[#arg3|string]])''' | |
- | + | ||
- | + | ||
- | + | ||
- | {{ | + | {{Lua_API |
- | + | |description=Adds a console command | |
- | + | |arg1=Console command name | |
- | | | + | |arg2=Lua function |
- | + | |arg3=Extra info for help | |
- | < | + | |example=<source lang="lua"> |
- | + | function myFunc() | |
- | + | Log("Called myFunc"); | |
- | + | end | |
- | + | System.AddCCommand("myConsoleCommand","myFunc()","This command calls my function");</source> | |
- | + | |notes=More info on the [[Creating_Console_Commands]] tutorial page. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | | | + | |
}} | }} | ||
- | |||
- | |||
- |
Версия 07:38, 8 мая 2011
System.AddCCommand(string, string, string)
Описание
Без описания
Аргументы
- Console command name
- Lua function
- Extra info for help