Condition_InteractionObjectRange
Description
Searches for objects around Self that support the InteractionBag specified in S1, and checks whether any of them are within the distance defined by F1. The condition succeeds if at least one valid object is found within the given range.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The object whose surrounding area will be checked (Self only). |
| S1 | The InteractionBag ID to check for available objects. |
| F1 | The maximum allowed distance. Objects at or below this distance from Self are considered valid. |
Examples
| Description | BaseObject | Command | S1 | F1 |
|---|---|---|---|---|
| Check if an object supporting SitTalk is within 1000 units of Self | Self | InteractionObjectRange | SitTalk | 1000 |
| Check if an object supporting Piano_Play is within 500 units of Self | Self | InteractionObjectRange | Piano_Play | 500 |
| Check if an object supporting Cooking is within 300 units of Self | Self | InteractionObjectRange | Cooking | 300 |
Back to Command FinderSearch and filter all 491 Script Condition documents