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
| Parameter | Description |
|---|
| BaseObject | The entity whose location is checked for indoor status (Self or Target). |
| CompareType | Type of comparison operation (Equal or NotEqual). |
Examples
| Description | BaseObject | Command | CompareType |
|---|
| Checks if Self is currently inside a room | Self | IsIndoor | Equal |
| Checks if Target is currently inside a room | Target | IsIndoor | Equal |
| Checks if Self is NOT inside a room (outdoors) | Self | IsIndoor | NotEqual |