landsandboat/scripts/commands/inwater.lua
Zach Toogood f78196c245 Core: Use ximesh for raycasts, remove LOSmeshes
Co-authored-by: InoUno <inoiown@gmail.com>
2026-05-07 17:01:31 +01:00

18 lines
383 B
Lua

-----------------------------------
-- func: inwater <target>
-- desc: Are you in water?
-----------------------------------
---@type TCommand
local commandObj = {}
commandObj.cmdprops =
{
permission = 1,
parameters = ''
}
commandObj.onTrigger = function(player)
player:printToPlayer(player:inWater() and 'You are in water' or 'You are on land')
end
return commandObj