Skip to main content

Condition_IsInWaterGridByImpactPoint

Description

Checks whether the impact point (target location) is within a swimming pool located inside a site. Water areas located outside of sites (e.g., the sea) are 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 inside a site swimming poolSelfIsInWaterGridByImpactPointEqual
Checks whether the impact point is NOT inside a site swimming poolSelfIsInWaterGridByImpactPointNotEqual
Checks whether a target location lies within a pool grid in a siteTargetIsInWaterGridByImpactPointEqual