Background for Skyrim SE
Member of the ReferenceAlias script
voidfunctionClear()Native

Description

Wiki Description

Clears any reference out of this alias. Will error if this alias is not optional.

Documentation Comment

Clears the alias - fails on non-optional aliases


Caveats

CK Wiki - Notes

  • Use of this function causes this actor (and perhaps other actors in any current running scene in the quest) to re-Actor.EvaluatePackage() their packages. When invoked by a script fragment from the current package, this may cause another package and its script fragment to run in parallel.
  • Aliases need to be marked as "optional" if this function is to work. Trying to clear a non-optional alias will throw an error to the log.

Examples

; Clear the alias out
Alias_JohnDoe.Clear()

Auto-Generated Example

myReferenceAlias__toCallFunctionOn.Clear()

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.