[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>DragoonWraith (creating) |
imported>DragoonWraith m (→Example: formatting) |
||
Line 11: | Line 11: | ||
ref curPlayerCell | ref curPlayerCell | ||
set curPlayerCell to player.GetParentCell | set curPlayerCell to player.GetParentCell | ||
if (curPlayerCell != lastPlayerCell) | if (curPlayerCell != lastPlayerCell) | ||
Message "Player has changed cells!" | Message "Player has changed cells!" | ||
set lastPlayerCell to curPlayerCell | set lastPlayerCell to curPlayerCell | ||
endif | endif | ||
==Notes== | ==Notes== |
Revision as of 11:32, 2 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.