Skip to main content

Condition_HasObjectTagNearby

Description

Checks whether an object carrying the given object tag stands within F1 cm (3D distance) of the BaseObject. The BaseObject itself is never counted. Only objects of the site the BaseObject stands in are searched. Typical use is the ConditionId of an ObjectTag target filter with BaseObject = Target, so that each candidate object is kept only when the S1 prop is near it.

Parameters

ParameterDescription
BaseObjectThe entity whose surroundings are searched (Self or Target).
CompareTypeType of comparison operation (Equal or NotEqual).
S1Object tag to search for.
F1Search radius in cm. Must be greater than 0.

Examples

DescriptionBaseObjectCommandCompareTypeS1F1
Checks whether a fridge stands within 3m of the target markerTargetHasObjectTagNearbyEqualFridge300
Checks whether no sofa stands within 2m of SelfSelfHasObjectTagNearbyNotEqualObject_Sofa200