Difference between revisions of "Talk:OBSE Wish List"
Jump to navigation
Jump to search
CellChanged vs GetParentCell
imported>GuidoBot (Reply to DW's questions) |
imported>Scruggs (CellChanged vs GetParentCell) |
||
Line 154: | Line 154: | ||
::[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=2>D</font>ragoon <font face="Oblivion,Daedric Runes" size=2>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]]: See the example at [[GetParentCell]] for a script that should emulate CellChanged from Morrowind... JOG also said that it was no good, but I didn't understand why. Perhaps you could explain it? Of course, you ''could'' do it without OBSE using an Activator and GetInSameCell/MoveTo (why do you need GetInInterior?), that also works (but is less convenient, methinks). | ::[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=2>D</font>ragoon <font face="Oblivion,Daedric Runes" size=2>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]]: See the example at [[GetParentCell]] for a script that should emulate CellChanged from Morrowind... JOG also said that it was no good, but I didn't understand why. Perhaps you could explain it? Of course, you ''could'' do it without OBSE using an Activator and GetInSameCell/MoveTo (why do you need GetInInterior?), that also works (but is less convenient, methinks). | ||
:::I dont think GetParentCell gives you what you would expect [in this script]. IsInInterior is very important if you consider that you are changing cells all the time when outside and typically it isn't your intention to detect these types of cell changes. | :::I dont think GetParentCell gives you what you would expect [in this script]. IsInInterior is very important if you consider that you are changing cells all the time when outside and typically it isn't your intention to detect these types of cell changes. | ||
::::I ''think'' JOG's gripe with GetParentCell is that, in Morrowind, CellChanged returned true when the player entered the cell containing the scripted object. It was closer to something like an '''OnPlayerEntry''' function. While that was often more annoying than useful, I can see his point (if that is in fact his point ;)), although [[GetParentCell]] along with [[GetInSameCell]] are enough for a (somewhat clunky) workaround. :shrug: [[User:Scruggs|Scruggs]] 23:24, 25 October 2006 (EDT) |