mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
stubbed some more states
- 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
This commit is contained in:
parent
c7b87c0d89
commit
68657e1edc
33 changed files with 1459 additions and 444 deletions
|
@ -11,12 +11,12 @@ Switches between active and passive mode states
|
|||
function onEventStarted(player, command, triggerName)
|
||||
|
||||
if (player:GetState() == 0) then
|
||||
player:ChangeState(2);
|
||||
player.Engage();
|
||||
elseif (player:GetState() == 2) then
|
||||
player:ChangeState(0);
|
||||
player:ChangeState(0);
|
||||
player.Disengage();
|
||||
end
|
||||
player:endEvent();
|
||||
|
||||
sendSignal("playerActive");
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue