Skip to main content

Condition_IsIndoor

Description

Checks whether the specified entity is currently located inside a room (indoor area) within a building. The test location is determined from the entity's current position or, if Target is used and no entity is found, from the script context's target location.

Parameters

ParameterDescription
BaseObjectThe entity whose location is checked for indoor status (Self or Target).
CompareTypeType of comparison operation (Equal or NotEqual).

Examples

DescriptionBaseObjectCommandCompareType
Checks if Self is currently inside a roomSelfIsIndoorEqual
Checks if Target is currently inside a roomTargetIsIndoorEqual
Checks if Self is NOT inside a room (outdoors)SelfIsIndoorNotEqual