Difference between revisions of "Talk:GetParentCell"

Jump to navigation Jump to search
302 bytes removed ,  10:35, 14 August 2006
ok, I see the complaint (requires a global script), but still, it's damn close
imported>DragoonWraith
(How not?)
imported>DragoonWraith
(ok, I see the complaint (requires a global script), but still, it's damn close)
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:2835, 14 August 2006 (EDT): IThe don'tneed seeof what'sa differentshort (otherglobal script hardly makes this less useful than aCellChanged. coupleYour linespoint ofis code)taken, fromhowever, this:and your request accepted.
 
:I don't see how GetInCell can possibly achieve the functionality that GetParentCell can. If you have a global variable CellChanged and this global script, you have the CellChanged function:
scn CellChangedScript
float fQuestDelayTime
ref CellLastFrame
short CellChanged
Begin GameMode ;(or whatever)
set fQuestDelayTime to 0.0001
if ( CellLastFrame != player.GetParentCell )
set CellChanged to 1
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