Mod:Creation Kit/SetPropertyValueNoWait - ScriptObject

Member of: Mod:Creation Kit/ScriptObject Script

Sets a the value of a property on this script by name, asynchronously.

Syntax
Function SetPropertyValueNoWait(string asProperyName, Var aValue) native

Parameters

 * asPropertyName: The name of the property to set
 * aValue: The value to set the property to

Return Value
None.

Examples
ScriptObject combatScript = FormFromOtherMod.CastAs("CombatOverhaul") combatScript.SetPropertyValueNoWait("DamageMultiplier", 1.0) combatScript.SetPropertyValueNoWait("RefToTarget", Game.GetPlayer as ObjectReference)
 * Set the value of a few properties on the "CombatOverhaul" script without waiting
 * We use CastAs to make sure we don't depend on the script we want to call the function on
 * note the '.0' to ensure it is a float, 1 won't work for float properties
 * again, casting to ObjectReference from Actor, even though Actor is a descendant
 * we're now running in parallel with the two property set operations...