2017-03-14 18:33:33 -04:00
|
|
|
require ("global")
|
|
|
|
|
2016-03-12 02:54:03 -05:00
|
|
|
--[[
|
|
|
|
|
|
|
|
ActivateCommand Script
|
|
|
|
|
|
|
|
Switches between active and passive mode states
|
|
|
|
|
|
|
|
--]]
|
|
|
|
|
2017-08-31 05:56:43 +01:00
|
|
|
function onEventStarted(player, command, triggerName)
|
|
|
|
|
2018-04-18 16:06:41 -05:00
|
|
|
if (player.currentMainState == 0x0000) then
|
2017-08-31 05:56:43 +01:00
|
|
|
player.Engage(0, 0x0002);
|
2018-04-18 16:06:41 -05:00
|
|
|
elseif (player.currentMainState == 0x0002) then
|
2017-08-31 05:56:43 +01:00
|
|
|
player.Disengage(0x0000);
|
2017-03-19 11:40:41 -04:00
|
|
|
end
|
2017-03-07 08:32:57 -05:00
|
|
|
player:endEvent();
|
2017-03-19 11:40:41 -04:00
|
|
|
sendSignal("playerActive");
|
2017-08-30 00:14:14 +01:00
|
|
|
end;
|