1
0

20 lines
425 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Function: InWater(Spawn)
**Description:**
Determines if the given spawn is currently submerged in water.
**Parameters:**
- `Spawn`: Spawn The entity to check.
**Returns:** Boolean true if the spawn is in water; false if not.
**Example:**
```lua
-- Example usage (If NPC is in water make them glow)
if InWater(NPC) then
SpawnSet(NPC, "visual_state", 2103)
else
SpawnSet(NPC, "visual_state", 0)
end
```