ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. callGameCommand

Function

callGameCommand

ClientGame engineTrilogy Hub only

Calls a game script command by number and returns the result and variables. Developer mode only; it returns false for players.

Syntax

bool, table, table, bool callGameCommand(int opcode [, mixed ...])

Arguments

opcodeint
Command number.
...mixed, optional
Command arguments.

Returns

Success, integer variables, float variables and the condition.

Example

local ok = callGameCommand(0x0247, 1271) -- wczytaj model

See also