ObjectIsSubmerged

Check if a WowGameObject is submerged (AKA in the water).

ObjectIsSubmerged(--[[(1)]]objectReference) : boolean
  1. See Object Reference for more information on possible values.

Example

Check if an object is submerged.

local issubmerged = ObjectIsSubmerged('target')
if issubmerged then
print("OMG The wet")
end