Skip to main content

Condition_IsInWaterArea

Description

Checks whether the BaseObject character is currently in the water area type specified by S1. "Sea" reads the character's own cached natural water-area state (FB2Character::IsInWaterArea), which is refreshed elsewhere from FB2TerritoryManager::IsInWaterTerritory(GetLocation()). "SwimmingPool" checks whether the character's current location is inside a site swimming pool grid, via FB2SiteManager::IsInWaterSiteGrid().

Parameters

ParameterDescription
BaseObjectThe character whose water-area state is checked (Self or Target).
CompareTypeType of comparison operation (Equal or NotEqual).
S1Which water area type to check: "Sea" or "SwimmingPool".

Examples

DescriptionBaseObjectCommandCompareTypeS1
Checks whether Self is currently in the sea (not a pool)SelfIsInWaterAreaEqualSea
Checks whether Self is NOT in the seaSelfIsInWaterAreaNotEqualSea
Checks whether Self is currently inside a site swimming poolSelfIsInWaterAreaEqualSwimmingPool