- Found in:
- Vanilla
Description
Wiki Description
This is a convenient way to disable 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.Disable(...) on them without having to test for a reference being present first.
Documentation Comment
Convenience function - jduvall
Caveats
Examples
; Disable the alias
if BarrierAlias.TryToDisable()
Debug.Trace("Barrier disabled")
else
Debug.Trace("No barrier to disable")
endIfAuto-Generated Example
bool returnedValue = myReferenceAlias__toCallFunctionOn.TryToDisable()Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
