function
isPlayerInWater (client-side)
Available since version: 0.1.10
The function is used to check whether player/npc is in the water (standing, swimming or diving).
Declaration
bool isPlayerInWater(int id)
Parameters
int
id: the player id.
Returns bool
true
when player is in the water, otherwise false
.