Difference between revisions of "Questions"

57 bytes removed ,  14:09, 14 May 2006
m
imported>DragoonWraith
imported>DragoonWraith
Line 332: Line 332:
== How does an object finds out in which cell it is placed, using a script attached to the object? ==
== How does an object finds out in which cell it is placed, using a script attached to the object? ==
The purpous is simple. Lets say I have a chest that should consider by itself via a script if it is placed in a player owned cell, and if so should react accordingly.
The purpous is simple. Lets say I have a chest that should consider by itself via a script if it is placed in a player owned cell, and if so should react accordingly.
After looking at all the Cell functions only one looks promising and that is [http://cs.elderscrolls.com/constwiki/index.php/IsCellOwner IsCellOwner]. However this function need the cell id as the first parameter, what means that the object script calling it would need to know in which cell the object is placed. Unfortunately there seems to be no function to get the cell id of the cell the object is in, and therefore the forementioned function does not do the job.<br>
After looking at all the Cell functions only one looks promising and that is [[IsCellOwner]]. However this function need the cell id as the first parameter, what means that the object script calling it would need to know in which cell the object is placed. Unfortunately there seems to be no function to get the cell id of the cell the object is in, and therefore the forementioned function does not do the job.<br>
<br>
<br>
Have I missed something or is it simply not possible?<br>
Have I missed something or is it simply not possible?<br>