[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "GetParentCell"
Jump to navigation
Jump to search
imported>Haama (Easier example) |
imported>Haama m |
||
Line 7: | Line 7: | ||
==Example== | ==Example== | ||
if (player.GetParentCell | if (player.GetParentCell == SigilStoneRef.GetParentCell) | ||
Returns true if the player is in | Returns true if the player is in the same cell as the SigilStoneRef (However, [[GetInSameCell]] is a bit faster than GetParentCell, so you would use that instead.) | ||
scn CellChangedScript | scn CellChangedScript |
Revision as of 09:41, 15 September 2007
A command for Oblivion Script Extender
Syntax:
(parentCell:ref) reference.GetParentCell
Must be called on a reference. Returns the cell containing the reference.
Example
if (player.GetParentCell == SigilStoneRef.GetParentCell)
Returns true if the player is in the same cell as the SigilStoneRef (However, GetInSameCell is a bit faster than GetParentCell, so you would use that instead.)
scn CellChangedScript float fQuestDelayTime ref CellLastFrame Begin GameMode set fQuestDelayTime to 0.0001 if ( CellLastFrame != player.GetParentCell ) set CellChanged to 1 set CellLastFrame to player.GetParentCell else set CellChanged to 0 endif End
This script mimics the CellChanged function from Morrowind. CellChanged would be a global short variable.
Notes
- In the commands.txt of OBSE v0004, this function was called GetPlayerCell.