GetParentCell

Revision as of 11:31, 2 August 2006 by imported>DragoonWraith (creating)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.