Background for Fallout 4
Member of the ReferenceAlias script
boolfunctionTryToClear()

Description

Wiki Description

Clears this alias and returns whether anything was in it to begin with.

Documentation Comment

Convenience function - sjml


Caveats


Examples

; Clear the alias
if OptionalAlias.TryToClear()
  Debug.Trace("Removed something from the alias")
else
  Debug.Trace("Didn't remove anything from the alias (already empty)")
endIf

Auto-Generated Example

bool returnedValue = myReferenceAlias__toCallFunctionOn.TryToClear()

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.