[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
no edit summary
imported>DragoonWraith (updating example with a better one) |
imported>WereWolf |
||
Line 2: | Line 2: | ||
'''Syntax:''' | '''Syntax:''' | ||
GetParentCell | (parentCell:ref) reference.GetParentCell | ||
Must be called on a reference. Returns the cell containing the reference. | Must be called on a reference. Returns the cell containing the reference. | ||
==Example== | ==Example== | ||
scn CellChangedScript | scn CellChangedScript | ||
float fQuestDelayTime | float fQuestDelayTime | ||
ref CellLastFrame | ref CellLastFrame | ||
Begin GameMode | Begin GameMode | ||
set fQuestDelayTime to 0.0001 | set fQuestDelayTime to 0.0001 | ||
if ( CellLastFrame != player.GetParentCell ) | if ( CellLastFrame != player.GetParentCell ) | ||
Line 23: | Line 18: | ||
set CellChanged to 0 | set CellChanged to 0 | ||
endif | endif | ||
End | End | ||
Line 29: | Line 23: | ||
==Notes== | ==Notes== | ||
*In the commands.txt of OBSE v0004, this function was called '''GetPlayerCell'''. | *In the commands.txt of OBSE v0004, this function was called '''GetPlayerCell'''. | ||
[[Category: OBSE Functions]] | <!--[[Category: OBSE Functions]] | ||
[[Category: OBSE Miscellaneous Functions]] | [[Category: OBSE Miscellaneous Functions]] | ||
[[Category: OBSE Reference Functions]] | [[Category: OBSE Reference Functions]]--> | ||
[[Category: Functions]] | |||
[[Category: Functions (OBSE)]] | |||
[[Category: Miscellaneous Functions]] | |||
[[Category: Miscellaneous Functions (OBSE)]] | |||
[[Category: Record Variable Functions]] | |||
[[Category: Record Variable Functions (OBSE)]] |