Lua API/System/AddCCommand

Материал из CryWiki Russia

Перейти к: навигация, поиск

System.AddCCommand(string, string, string)

Описание

Adds a console command

Аргументы

  1. Console command name
  2. Lua function
  3. 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.