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"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
m (→‎Example: formatting)
imported>DragoonWraith
Line 22: Line 22:


[[Category: OBSE Functions]]
[[Category: OBSE Functions]]
[[Category: OBSE Miscellaneous Functions]]
[[Category: OBSE Reference Functions]]

Revision as of 14:42, 3 August 2006

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.