GetInCell

From GECK
Jump to: navigation, search
Link to TES4 Construction Set Wiki: GetInCell.

A function included in the GECK version 1.1.0.36.

Description

Returns true if the actor's current cell includes the argument as the first part of its cell name.

Syntax

[help]
(0, 1:int) [Actor].GetInCell :CellID

Example

Player.GetInCell Megaton

Returns a 1 if the player is in a cell that begins with "Megaton" and 0 otherwise. So this would return a 1 if the player was in MegatonPlayerHouse, MegatonCratersideSupply, etc...

Notes

  • The CellName has to be a valid interior cell name. Exterior cells will not work. In some cases, it is necessary to create a "dummy" interior cell (e.g. Megaton) in order to use GetInCell for a set of related interior and exterior cells (e.g. all the MegatonXXX cells).

See Also