Background for Skyrim SE
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.Clear()
  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 Skyrim Creation Kit Wiki

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