GameCall

Category: Script / Function call
Since engine version: 4.6.5.0 CP

Description

Calls szFunction in the scenario script. If the function is not defined in the scenario script, this call returns 0 and does not cause an error.

Syntax

any GameCall (string szFunction, any ...);

Parameters

szFunction:
Name of the scenario script function
...:
[opt] Up to nine parameters which are passed to the scenario script function

Example

GameCall("InitializePlayer",0);
Causes the scenario script to re-execute intialization for the first player.
See also: Call, DefinitionCall, GameCallEx, ObjectCall
Günther, April 2002