Skip to main content

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

ParameterDescription
BaseObjectThe object whose surrounding area will be checked (Self only).
S1The InteractionBag ID to check for available objects.
F1The maximum allowed distance. Objects at or below this distance from Self are considered valid.

Examples

DescriptionBaseObjectCommandS1F1
Check if an object supporting SitTalk is within 1000 units of SelfSelfInteractionObjectRangeSitTalk1000
Check if an object supporting Piano_Play is within 500 units of SelfSelfInteractionObjectRangePiano_Play500
Check if an object supporting Cooking is within 300 units of SelfSelfInteractionObjectRangeCooking300