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
| Parameter | Description |
|---|
| CompareType | Type of comparison operation (Equal or NotEqual). |
Examples
| Description | BaseObject | Command | CompareType |
|---|
| Checks whether the clicked impact point is in a swimmable water area | Self | IsInWaterAreaByImpactPoint | Equal |
| Checks whether the impact point is NOT in a natural water area | Self | IsInWaterAreaByImpactPoint | NotEqual |
| Checks whether a target location is within the sea territory | Target | IsInWaterAreaByImpactPoint | Equal |