DefinitionCall (deprecated since 4.9.1.4 GWE)

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
...:
[optional] Additional parameters to be passed to the function

Example

DefinitionCall(CPPL, "SetKnowledge", 0);
Gives castle construction plans to player 0.

Changelog

Date Author Version Description
15th July 2002 PeterW 4.9.1.4 GWE Deprecated: Instead of this function, the new syntax for calling functions should be used. See Call a function in another object.
See also: GameCall, ObjectCall
Sven2, November 2001