Difference between revisions of "GetCallingScript"
Jump to navigation
Jump to search
imported>Odessa m (clarified) |
imported>Odessa (note + cat) |
||
Line 12: | Line 12: | ||
PrintC "My UDF just got called by %i", rCallingScript | 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== | ==See Also== | ||
*[[Call]] | *[[Call]] | ||
Line 21: | Line 23: | ||
[[Category:Functions_(NVSE)]] | [[Category:Functions_(NVSE)]] | ||
[[Category:Debugging]] | [[Category:Debugging]] | ||
[[Category:Script Functions]] |
Latest revision as of 05:57, 6 August 2014
< [[::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.