Difference between revisions of "Talk:GetParentCell"

Jump to navigation Jump to search
1,166 bytes added ,  10:28, 14 August 2006
How not?
imported>JOG
m
imported>DragoonWraith
(How not?)
 
The only thing you can't do without using OBSE is a script that fires whenever you enter a new exterior cell. But usually you use Cellchanged to trigger stuff (music for example) when you enter a certain cell.--[[User:JOG|JOG]] 09:51, 14 August 2006 (EDT)
 
:[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 11:28, 14 August 2006 (EDT): I don't see what's different (other than a couple lines of code) from this:
ref CellLastFrame
short CellChanged
Begin GameMode ;(or whatever)
if ( CellLastFrame != player.GetParentCell )
set CellChanged to 1
set CellLastFrame to player.GetParentCell
else
set CellChanged to 0
endif
if ( CellChanged == 1 )
;do whatever
endif
End
:and this:
Begin GameMode ;(or whatever)
if ( CellChanged == 1 )
;do whatever
endif
End
:Sure, an actual CellChanged function would be shorter, but this has the same functionality, and you can easily add it to whatever script you're currently using. GetInCell cannot do the same thing, at all, without listing every cell in the game. GetInCell is good if you're dealing with a single cell. CellChanged is used when you have something that needs to be reset in each cell the player is in.
 
:I don't really see what your complaint is.

Navigation menu