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

25 lines
470 B
Lua
Raw Normal View History

--[[
ActivateCommand Script
Switches between active and passive mode states
--]]
function onEventStarted(player, command, triggerName)
2016-06-15 03:41:23 +01:00
if (player:GetState() == 0) then
player:ChangeState(2);
2016-06-15 03:41:23 +01:00
elseif (player:GetState() == 2) then
player:ChangeState(0);
end
player:endEvent();
--For Opening Tutorial
if (player:HasQuest("Man0l0") or player:HasQuest("Man0g0") or player:HasQuest("Man0u0")) then
2016-06-15 03:41:23 +01:00
player:GetDirector():OnCommand(command);
end
end