Background for Fallout 4
Member of the ReferenceAlias script
boolfunctionForceRefIfEmpty(ObjectReferenceakNewRef)

[DEV SERVER] Loading description...


Caveats


Parameters

ObjectReferenceakNewRef

CK Wiki Description

The ObjectReference to tell this alias to use, if empty


Examples

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

Auto-Generated Example

ObjectReference myObjectReference__akNewRef

bool returnedValue = myReferenceAlias__toCallFunctionOn.ForceRefIfEmpty(myObjectReference__akNewRef)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.