1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 19:57:46 +00:00
kawari/resources/scripts/commands/debug/ToggleInvisibility.lua

12 lines
335 B
Lua
Raw Normal View History

required_rank = GM_RANK_DEBUG
function onCommand(args, player)
local parts = split(args)
local argc = table.getn(parts)
local sender = "[invis] "
local usage = "\nThis command makes the user invisible to all other actors."
player:toggle_invisibility()
player:send_message(sender.."Invisibility toggled.")
end