Background for Skyrim SE
Member of the ReferenceAlias script
boolfunctionTryToDisable()

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")
endIf

Auto-Generated Example

bool returnedValue = myReferenceAlias__toCallFunctionOn.TryToDisable()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.