Kategorie: Script
/ Funktionsaufruf
Ab Engineversion: 1.0 OC
(erweitert ab 4.0 OC)
Call
Beschreibung
Calls the specified function. If given a string, the function is looked up in the context object (
this
). For example, obj->Call("Foo")
is the same as obj->Foo()
. Using Call like this is primarily useful when the name of the function can vary. If "~" is prepended to the function name then the call does not fail if the function does not exist.Syntax
any Call(string or function function, any ...);
Parameter
- function:
- Funktion, die aufgerufen werden soll.
- ...:
- Parameter für die Funktion