GetRefExtraData
From GECK
A function added by the JIP NVSE Plugin.
Contents
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
(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 |