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.

GetParentCell

From the Oblivion ConstructionSet Wiki
Revision as of 11:31, 2 August 2006 by imported>DragoonWraith (creating)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

GetParentCell

Must be called on a reference. Returns the cell containing the reference.

Example

ref lastPlayerCell ; assumed to be set some earlier iteration
ref curPlayerCell
set curPlayerCell to player.GetParentCell
if (curPlayerCell != lastPlayerCell)
  Message "Player has changed cells!"
  set lastPlayerCell to curPlayerCell
endif


Notes

  • In the commands.txt of OBSE v0004, this function was called GetPlayerCell.