Mod:Creation Kit/ForceRefIfEmpty - ReferenceAlias

Member of: Mod:Creation Kit/ReferenceAlias Script

Forces this alias to use the specified reference, but only if the alias is currently empty

Syntax
Function ForceRefIfEmpty(ObjectReference akNewRef)

Parameters

 * akNewRef: The ObjectReference to tell this alias to use, if empty

Return Value
None.

Examples
Alias_JohnDoe.ForceRefIfEmpty(RandomPerson)
 * Force the alias to use the random person as the reference, but only if the alias is currently empty