Mod:Creation Kit/GetCurrentStackID - Utility

Member of: Mod:Creation Kit/Utility Script

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

Syntax
int Function GetCurrentStackID native debugOnly

Parameters
None.

Return Value
The stack ID of the currently running stack

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