2016-03-12 02:54:03 -05:00
|
|
|
--[[
|
|
|
|
|
|
|
|
ActivateCommand Script
|
|
|
|
|
|
|
|
Switches between active and passive mode states
|
|
|
|
|
|
|
|
--]]
|
|
|
|
|
2016-04-14 08:31:39 -04:00
|
|
|
function onEventStarted(player, command, triggerName)
|
|
|
|
|
2016-06-15 03:41:23 +01:00
|
|
|
if (player:GetState() == 0) then
|
2016-06-16 03:01:10 +01:00
|
|
|
player:ChangeState(2);
|
2016-06-15 03:41:23 +01:00
|
|
|
elseif (player:GetState() == 2) then
|
2016-06-16 03:01:10 +01:00
|
|
|
player:ChangeState(0);
|
2016-03-12 02:54:03 -05:00
|
|
|
end
|
2016-04-14 08:31:39 -04:00
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
player:endEvent();
|
2016-04-18 13:33:31 -04:00
|
|
|
|
2016-04-14 08:31:39 -04:00
|
|
|
--For Opening Tutorial
|
2016-06-16 03:01:10 +01:00
|
|
|
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);
|
2016-04-18 13:33:31 -04:00
|
|
|
|
2016-04-14 08:31:39 -04:00
|
|
|
end
|
2016-03-12 02:54:03 -05:00
|
|
|
|
|
|
|
end
|