GetRefExtraData

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns the data stored at the specified slot index of the calling reference's Extra Data, owned by:

  • If the function's 2nd, optional argument is omitted - the parent mod of the calling script. Otherwise -
  • The mod whose mod index was specified.

Syntax

[help]
(special) reference.GetRefExtraData slotIndex:int{0-19} altModIndex:int

Example

fNumVal = objectRef.GetRefExtraData 2
sStringVal = objectRef.GetRefExtraData 18
iIndex = GetModIndex "SomeOtherMod.esp"
rRefVal = objectRef.GetRefExtraData 12 iIndex

Notes

Slot Index Data Type
0-17 Either Numeric, or Form/Reference
18-19 String Only

See Also