GetCurrentStackID - Utility

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Utility Script

Obtains the stack ID of the currently running stack where this function is called.

Syntax[edit | edit source]

int Function GetCurrentStackID() native debugOnly

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The stack ID of the currently running stack

Examples[edit | edit source]

; Spit out a debug trace detailing the stack this was called on
Debug.Trace("Called from stack: " + Utility.GetCurrentStackID())

See Also[edit | edit source]