Clear - ReferenceAlias

Revision as of 16:57, 26 February 2018 by imported>Wormple12 (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.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ReferenceAlias Script

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

SyntaxEdit

Function Clear() native

ParametersEdit

None.

Return ValueEdit

None.

ExamplesEdit

; Clear the alias out
Alias_JohnDoe.Clear()

NotesEdit

  • Use of this function causes this actor (and perhaps other actors in any current running scene in the quest) to re-evaluate 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.

See AlsoEdit