Condition_HasObjectTagInRoom
Description
Checks whether an object carrying the given object tag stands inside the very room the BaseObject occupies, on the same floor. The room is resolved from the wall-graph room tree, so room purpose does not have to be authored. A BaseObject that is not inside any room (outdoors, yard, terrace) never matches.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity whose current room is searched (Self or Target). |
| CompareType | Type of comparison operation (Equal or NotEqual). |
| S1 | Object tag to search for. |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Checks whether Self's room holds a toddler bed | Self | HasObjectTagInRoom | Equal | ToddlerBed |
| Checks whether Target's room holds no sofa | Target | HasObjectTagInRoom | NotEqual | Object_Sofa |