mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
22 lines
322 B
Lua
22 lines
322 B
Lua
--[[
|
|
|
|
ActivateCommand Script
|
|
|
|
Switches between active and passive mode states
|
|
|
|
--]]
|
|
|
|
function onEventStarted(player, actor)
|
|
|
|
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 |