Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API ScriptRegion GetSourceLocation

Last wiki revision 2022-10-05

Returns the script name and line number where the region was created. location = ScriptRegion:GetSourceLocation

  • location : string - The script name and line number where the region was created.
  • The returned string will be the script name and line number delimited with a colon, eg..
  • For accurate script names the enableSourceLocationLookup console variable must be set to, otherwise the script name will always be "UnknownFile".
  • For dynamically loaded scripts the script name portion will correspond to the argument supplied to loadstring. If not supplied, this will typically expand to a leading portion of the script body.
  • Texture and fontstring regions created through script APIs at-present report the source location of their initial parent frame, whereas those created statically in XML will be correct.

Source

https://warcraft.wiki.gg/wiki/API_ScriptRegion_GetSourceLocation · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.