System AddCCommand

From CryWiki

Jump to: navigation, search

System.AddCCommand(string, string, string)

Description

Adds a console command

Arguments

  1. Console command name
  2. Lua function
  3. Extra info for help


Example

Lua (example)
function myFunc()
  Log("Called myFunc");
end
System.AddCCommand("myConsoleCommand","myFunc()","This command calls my function");


Notes

More info on the Creating_Console_Commands tutorial page.

Personal tools