Difference between revisions of "Questions"
m
→How does an object finds out in which cell it is placed, using a script attached to the object?: internal link incorrectly formatted as external link
imported>DragoonWraith (→Get Current Bounty: solution) |
imported>DragoonWraith m (→How does an object finds out in which cell it is placed, using a script attached to the object?: internal link incorrectly formatted as external link) |
||
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 [ | 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> |