mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
25 lines
472 B
Lua
25 lines
472 B
Lua
--[[
|
|
|
|
ActivateCommand Script
|
|
|
|
Switches between active and passive mode states
|
|
|
|
--]]
|
|
|
|
function onEventStarted(player, command, triggerName)
|
|
|
|
if (player:GetState() == 0) then
|
|
player:changeState(2);
|
|
elseif (player:GetState() == 2) then
|
|
player:changeState(0);
|
|
end
|
|
|
|
player:EndCommand();
|
|
|
|
--For Opening Tutorial
|
|
if (player:hasQuest("Man0l0") or player:hasQuest("Man0g0") or player:hasQuest("Man0u0")) then
|
|
player:GetDirector():OnCommand(command);
|
|
|
|
end
|
|
|
|
end |