GetCallingScript

< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Usable only within a User Defined Function script to return the other script that called the UDF. This could be useful for debugging or converted for use as an array map key.

Syntax

(script) GetCallingScript 

Example

ref rCallingScript
let rCallingScript := GetCallingScript
PrintC "My UDF just got called by %i", rCallingScript

Notes

  • If the UDF is called within a dialogue or stage script of a quest, this function will return zero.

See Also