mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 19:57:46 +00:00

- stubbed some ability stuff - moved packet things to loop instead of session only - added mob roaming and aggro - todo: fix target find/detection/pathfinding speed/line of sight/line aoe length etc - todo: see "// todo:" in code
22 lines
No EOL
368 B
Lua
22 lines
No EOL
368 B
Lua
require ("global")
|
|
|
|
--[[
|
|
|
|
ActivateCommand Script
|
|
|
|
Switches between active and passive mode states
|
|
|
|
--]]
|
|
|
|
function onEventStarted(player, command, triggerName)
|
|
|
|
if (player:GetState() == 0) then
|
|
player.Engage();
|
|
elseif (player:GetState() == 2) then
|
|
player:ChangeState(0);
|
|
player.Disengage();
|
|
end
|
|
player:endEvent();
|
|
sendSignal("playerActive");
|
|
|
|
end |