Skip to main content

Condition_IsInWaterAreaByImpactPoint

Description

Checks whether the impact point (target location) is within a swimmable natural water area (e.g., the sea). Swimming pools located within sites are explicitly excluded. 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 a swimmable water areaSelfIsInWaterAreaByImpactPointEqual
Checks whether the impact point is NOT in a natural water areaSelfIsInWaterAreaByImpactPointNotEqual
Checks whether a target location is within the sea territoryTargetIsInWaterAreaByImpactPointEqual