ForceRefIfEmpty - ReferenceAlias

From Creation Kit
Jump to: navigation, search

Member of: ReferenceAlias Script

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

Syntax

Function ForceRefIfEmpty(ObjectReference akNewRef)

Parameters

Return Value

None.

Examples

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

See Also