GetNumExplicitRefs

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns the number of explicit references in the calling script or passed script object. Explicit references are any objects mentioned by name in the script; for instance, if a script contains an "OnHit Player" block or a "Player.AddItem" command, its explicit references will include the player.

Syntax

[help]
(NumRefs:int) GetNumExplicitRefs Script:script 

Example

int iNumRefs
let iNumRefs := GetNumExplicitRefs ; * for this script

; or

let iNumRefs := GetNumExplicitRefs SomeOtherScript

See Also