Mod:Creation Kit/CallGlobalFunctionNoWait - Utility

Member of: Mod:Creation Kit/Utility Script

Calls a global function asynchronously. Script execution continues immediately without waiting for the global function you called to finish (or even start).

Syntax
Function CallGlobalFunctionNoWait(string asScriptName, string asFuncName, Var[] aParams) native global

Parameters

 * asScriptName: The name of the script containing the function
 * asFuncName: The name of the function to call
 * aParams: The list of parameters to pass

Return Value
None

Examples
Var[] params = new Var[3] params[0] = 10 params[1] = 11.0 ; Note the '.0' to make this a float params[2] = MyCoolArmor as Form ; Must cast as form by hand, even though armor is derived from form Utility.CallGlobalFunctionNoWait("CoolModScript", "MakeEvenCooler", params) params[2] = MyCoolWeapon as Form Utility.CallGlobalFunctionNoWait("CoolModScript", "MakeEvenCooler", params)
 * Call "Function MakeEvenCooler(int aiValue, float afValue, From aItem) global"
 * on script "CoolModScript" and don't wait for it to finish
 * Now we have two copies of MakeEvenCooler running in parallel with us, each with different parameters