Lua API/System/AddCCommand
Материал из CryWiki Russia
Версия от 07:40, 8 мая 2011; Alex626 (Обсуждение | вклад)
System.AddCCommand(string, string, string)
Описание
Adds a console command
Аргументы
- Console command name
- Lua function
- Extra info for help
Пример
Lua (пример)
function myFunc() Log("Called myFunc"); end System.AddCCommand("myConsoleCommand","myFunc()","This command calls my function");
Примечания
More info on the Creating_Console_Commands tutorial page.