Difference between revisions of "Talk:GetSourceModIndex"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Irwiss
(Possible bug)
 
imported>Qazaaq
(make sure you're using the correct ID)
Line 8: Line 8:
It could be either a bug in OBSE v16 or me misunderstanding the function.
It could be either a bug in OBSE v16 or me misunderstanding the function.
Hopefully will spare you some debugging time. --[[User:Irwiss|Irwiss]] 04:58, 27 December 2008 (EST)
Hopefully will spare you some debugging time. --[[User:Irwiss|Irwiss]] 04:58, 27 December 2008 (EST)
<dl><dd>Use this if '''refItem''' contains an object ID:
<dd><pre>Set iItemBaseIndex to GetSourceModIndex refItem</pre>
<dd>and use this if '''refItem''' contains a reference ID:
<dd><pre>Set iItemBaseIndex to refItem.GetSourceModIndex</pre>
<dd>If one of those doesn't work you should post it in the OBSE thread.
<dd>--[[User:Qazaaq|Qazaaq]] 07:54, 27 December 2008 (EST)</dl>

Revision as of 08:54, 27 December 2008

Possible bug

Set iItemBaseIndex to GetSourceModIndex refItem ; Returns expected value
Set iItemBaseIndex to refItem.GetSourceModIndex ; Returns -1

Note that the first line will return the correct value. The second line will return -1.

It could be either a bug in OBSE v16 or me misunderstanding the function. Hopefully will spare you some debugging time. --Irwiss 04:58, 27 December 2008 (EST)

Use this if refItem contains an object ID:
Set iItemBaseIndex to GetSourceModIndex refItem
and use this if refItem contains a reference ID:
Set iItemBaseIndex to refItem.GetSourceModIndex
If one of those doesn't work you should post it in the OBSE thread.
--Qazaaq 07:54, 27 December 2008 (EST)