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
| Parameter | Description |
|---|---|
| BaseObject | The entity whose surroundings are searched (Self or Target). |
| CompareType | Type of comparison operation (Equal or NotEqual). |
| S1 | Object tag to search for. |
| F1 | Search radius in cm. Must be greater than 0. |
Examples
| Description | BaseObject | Command | CompareType | S1 | F1 |
|---|---|---|---|---|---|
| Checks whether a fridge stands within 3m of the target marker | Target | HasObjectTagNearby | Equal | Fridge | 300 |
| Checks whether no sofa stands within 2m of Self | Self | HasObjectTagNearby | NotEqual | Object_Sofa | 200 |