DefinitionCall

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

Description

Calls a function in a script without object context. this returns 0 in this case (comparable to scenario scripts).

Syntax

any DefinitionCall (id idDef, string szFunction, any ...);

Parameters

idDef:
id of the definition in the script of which to call the function
szFunction:
Function to call
...:
[opt] Additional parameters to be passed to the function

Example

DefinitionCall(CPPL, "SetKnowledge", 0);
Gives castle construction plans to player 0.
See also: GameCall, ObjectCall
Sven2, November 2001