Difference between revisions of "GetCallingScript"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Odessa
(Created page with "{{Function |origin = NVSE |summary = Available since NVSE 4.1. Usable only within a User Defined Function to return the calling script. This could be useful for debuggin...")
 
imported>Odessa
(note + cat)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Function
{{Function
  |origin = NVSE
  |origin = NVSE
  |summary = Available since NVSE 4.1. Usable only within a [[User Defined Function]] to return the calling script. This could be useful for debugging or converted for use as an [[Array Variable|array]] map key.
  |summary = 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 Variable|array]] map key.
  |name = GetCallingScript
  |name = GetCallingScript
  |returnType = script
  |returnType = script
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 18: Line 20:
*[[ToNumber]]
*[[ToNumber]]
*[[PrintToConsole|PrintC]]
*[[PrintToConsole|PrintC]]
*[[GetCurrentScript]]
[[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

[help]
(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