- Found in:
- Vanilla
Description
Wiki Description
This is a convenient way to enable a reference in an alias without calling ReferenceAlias.GetReference() on it. It's mostly useful in cases where you have lots of aliases that may or may not be filled and you want to call ObjectReference.Enable(...) on them without having to test for a reference being present first.
Documentation Comment
Convenience function - jduvall
Caveats
Examples
; Enable the cool object
if CoolAlias.TryToEnable()
Debug.Trace("Cool object enabled!")
else
Debug.Trace("No cool object exists...")
endIfAuto-Generated Example
bool returnedValue = myReferenceAlias__toCallFunctionOn.TryToEnable()Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
