1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-21 20:27:47 +00:00
project-meteor-server/data/scripts/commands/ActivateCommand.lua

22 lines
335 B
Lua
Raw Normal View History

--[[
ActivateCommand Script
Switches between active and passive mode states
--]]
function onEventStarted(player, actor, triggerName)
if (player:getState() == 0) then
player:changeState(2);
elseif (player:getState() == 2) then
player:changeState(0);
end
player:endEvent();
end
function onEventUpdate(player, npc)
end