Difference between revisions of "GetFirstRef"

Jump to navigation Jump to search
246 bytes added ,  07:07, 17 July 2014
old pencil01 workaround should not be necessary any more
imported>Odessa
m (minor)
imported>Odessa
(old pencil01 workaround should not be necessary any more)
Line 42: Line 42:
*The function will pick up dead and disabled references, note the example checks for this.
*The function will pick up dead and disabled references, note the example checks for this.
*Infinite loops immediately crash the game, so make sure you avoid this. <b>GetFirstRef</b> should be before the loop starts (outside it), whilst <b>GetNextRef</b> must be within it (it must run before it repeats).
*Infinite loops immediately crash the game, so make sure you avoid this. <b>GetFirstRef</b> should be before the loop starts (outside it), whilst <b>GetNextRef</b> must be within it (it must run before it repeats).
*At one point the OBSE version of this function had a bug which was commonly worked around by using 'set rActor to Pencil01' immediately prior to 'set rActor to GetNextRef'. A fix was added, so that this workaround should no longer be necessary.
==See Also==
==See Also==
*[[GetFirstRefInCell]]
*[[GetFirstRefInCell]]
Anonymous user

Navigation menu