GetNumExplicitRefs

From the Fallout3 GECK Wiki
Revision as of 13:49, 12 August 2014 by imported>Odessa (Created. Source OBSE docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

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