Skip to main content

Condition_IsInWaterByImpactPoint

Description

Determines whether the impact point (target location) is in any water area, including both site swimming pools and natural water areas outside of sites (e.g., the sea). This condition uses the target location directly and does not depend on the BaseObject. Returns false immediately if the target location is the zero vector.

Parameters

ParameterDescription
CompareTypeType of comparison operation (Equal or NotEqual).

Examples

DescriptionBaseObjectCommandCompareType
Checks whether the clicked impact point is in any water areaSelfIsInWaterByImpactPointEqual
Checks whether the impact point is NOT in any water areaSelfIsInWaterByImpactPointNotEqual
Checks whether a target location is inside a pool or natural water areaTargetIsInWaterByImpactPointEqual