ForceRefIfEmpty - ReferenceAlias

From the CreationKit Wiki
Revision as of 14:08, 26 October 2011 by imported>Jlundin (Created page with "Category:Scripting Category:Papyrus '''Member of:''' ReferenceAlias Script Forces this alias to use the specified reference, but only if the alias is currently empty...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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