GetInSameCell

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Returns true if the calling reference is in the same cell as the target Actor.

Syntax

[help]
(bool) Actor.GetInSameCell Target:Actor

Example

BuddyRef.GetInSameCell player

This will return a 1 if Buddy is in the same cell as the player, and 0 otherwise.

Notes

  • This function may give unexpected results if used in exteriors, as it will return false if two adjacent actors are seperated by a cell boundary. Consider using GetInGrid instead.

See Also