Skip to main content

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

ParameterDescription
BaseObjectThe entity whose current room is searched (Self or Target).
CompareTypeType of comparison operation (Equal or NotEqual).
S1Object tag to search for.

Examples

DescriptionBaseObjectCommandCompareTypeS1
Checks whether Self's room holds a toddler bedSelfHasObjectTagInRoomEqualToddlerBed
Checks whether Target's room holds no sofaTargetHasObjectTagInRoomNotEqualObject_Sofa