This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "GetParentCell"

Jump to navigation Jump to search
150 bytes added ,  11:36, 14 August 2006
updating example with a better one
imported>DragoonWraith
imported>DragoonWraith
(updating example with a better one)
Line 8: Line 8:
==Example==
==Example==


  ref lastPlayerCell ; assumed to be set some earlier iteration
  scn CellChangedScript
ref curPlayerCell
set curPlayerCell to player.GetParentCell
   
   
  if (curPlayerCell != lastPlayerCell)
  float fQuestDelayTime
   Message "Player has changed cells!"
  set lastPlayerCell to curPlayerCell
ref CellLastFrame
  endif
Begin GameMode
  set fQuestDelayTime to 0.0001
  if ( CellLastFrame != player.GetParentCell )
    set CellChanged to 1
    set CellLastFrame to player.GetParentCell
   else
    set CellChanged to 0
  endif
  End
 
This script mimics the CellChanged function from Morrowind. CellChanged would be a global short variable.


==Notes==
==Notes==

Navigation menu