EffectCall

Category: Effects
Since engine version: 4.9.5.0 CE

Description

Makes a function call in the specified effect. The call is made within the context of the effect. The first two parameters are always the target object and the effect index. The remaining parameters can be freely chosen.

Syntax

any EffectCall (object pTarget, int iNumber, string szCommand, any ...);

Parameters

pTarget:
[opt] Target object of the effect the of which you want to access variables. 0 for global effects.
iNumber:
Effect number. Effect numbers are passed to effect callback functions, they are the return values of AddEffect and can be determined from an effect name via GetEffect.
szCommand:
Function to be called. The prefix 'Fx' is automatically prepended to the function name. Do not include 'Fx' in the parameter.
...:
Additional parameters

Remark

For examples and more information see the effects documentation.
See also: AddEffect, ChangeEffect, CheckEffect, EffectVar, Effects Documentation, GetEffect, GetEffectCount, RemoveEffect
Sven2, März 2004