GetCurrentStackID - Utility

From Creation Kit
Jump to: navigation, search

Member of: 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

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

See Also