I'm finding that when moving from an exterior to an interior cell, the Cell variable becomes NULL while maintaining a valid Cell form.
For e.g., I'm using GetNthRef () to find 10 activators at a time during an OnUpdate () interval. And when moving from an exterior to an interior cell, and vice-versa, the Cell becomes invalid and GetNthRef () fails.
Here's a snippet of the log. Note the output for Debug.Trace () of "kuSMFPlayerFindTrapsS.layDownMarkers currentCell [Cell
Because [
Does anyone else have any way to checking if a form is an actual valid form?
[02/22/2015 - 07:46:34PM] kuSMFPlayerFindTrapsS.layDownMarkers [CellFor completeness, here's my code that produces the error above:] (currentCell as Cell) [Cell ][02/22/2015 - 07:46:38PM] kuSMFPlayerFindTrapsS.layDownMarkers [Cell < (0000964A)>] (currentCell as Cell) [Cell < (0000964A)>][02/22/2015 - 07:46:38PM] error: Unable to call GetNthRef - no native object bound to the script object, or object is of incorrect typestack:[ (0000964A)].Cell.GetNthRef() - " " Line ?[alias Player on quest kuSMFQ (2F000D62)].kusmfplayerfindtrapss.layDownMarkers() - "kuSMFPlayerFindTrapsS.psc" Line 706[alias Player on quest kuSMFQ (2F000D62)].kusmfplayerfindtrapss.OnUpdate() - "kuSMFPlayerFindTrapsS.psc" Line 32[alias Player on quest kuSMFQ (2F000D62)].kusmfplayerfindtrapss.OnPlayerLoadGame() - "kuSMFPlayerFindTrapsS.psc" Line 12THEN FURTHER DOWN[02/22/2015 - 07:46:39PM] error: Unable to call GetNthRef - no native object bound to the script object, or object is of incorrect typestack: [ (0000964A)].Cell.GetNthRef() - " " Line ? [alias Player on quest kuSMFQ (2F000D62)].kusmfplayerfindtrapss.layDownMarkers() - " " Line ? [alias Player on quest kuSMFQ (2F000D62)].kusmfplayerfindtrapss.OnUpdate() - "kuSMFPlayerFindTrapsS.psc" Line 32[02/22/2015 - 07:46:39PM] kuSMFPlayerFindTrapsS.layDownMarkers [Cell ] (currentCell as Cell) [Cell ]
Debug.Trace ("kuSMFPlayerFindTrapsS.layDownMarkers " + currentCell + " (currentCell as Cell) " + (currentCell as Cell))If currentCell as CellactivatorRef = currentCell.GetNthRef (lastGetNth, 24);24 = activatorEndIf