Difference between revisions of "Talk:PositionCell"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Antares
(Clarification, Haama's question should be answered. Will leave the article untouched for now)
imported>Antares
(More informative response)
Line 15: Line 15:
<br>--[[User:Haama|Haama]] 21:59, 6 September 2008 (EDT)
<br>--[[User:Haama|Haama]] 21:59, 6 September 2008 (EDT)


:'''PostionCell''' ''does not'' edit the destination cell, that's what I was saying. Someone might not want to create a ''dirty'' cell for the sake of one X-Marker so they would want to use '''PositionCell'''.
:'''PostionCell''' ''does not'' edit the destination cell, that's what I was saying. Someone might not want to create a ''dirty'' cell for the sake of one X-Marker so they would want to use '''PositionCell'''. There is little doubt that '''MoveTo''' is easier to use but the suggestion is that '''PositionCell''' is more desirable should one not want to edit the destination cell.
:--[[User:Antares|Antares]] 01:11, 7 September 2008 (EDT)
:--[[User:Antares|Antares]] 01:11, 7 September 2008 (EDT)

Revision as of 00:14, 7 September 2008

I needed some one way load doors for the player. The standard door markers require 2 doors and I was getting NPC's showing up in areas from areas they don't even go. Even when it's impossible to reach the doors ( i put them behind walls ) This is an example of a script to put on a door, effectively making it a morrowind stlye load door. Keeps the NPC's out and uses no markers and doesn't alter the cell you go to, so theres no conflicts.


 begin OnActivate 
   if IsActionRef player == 1
     player.positioncell -260, 16, 100, 0, ChorrolHouseForSale
   endif
 end

Notes discussion

However, MoveTo requires a reference, PositionCell does not. Useful if you do not want to edit the destination cell.

I'm not sure what that means - how would PositionCell edit the destination cell? On the first bit, it's suggested to use an x-marker that you've already placed in the CS - it's much easier to use an x-marker reference than the cell name and location. MoveTo is also preferred because it's less buggy.
--Haama 21:59, 6 September 2008 (EDT)

PostionCell does not edit the destination cell, that's what I was saying. Someone might not want to create a dirty cell for the sake of one X-Marker so they would want to use PositionCell. There is little doubt that MoveTo is easier to use but the suggestion is that PositionCell is more desirable should one not want to edit the destination cell.
--Antares 01:11, 7 September 2008 (EDT)