mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Added changes to how zones/areas are accessed in the lua scripts too.
This commit is contained in:
parent
4e0cf36552
commit
68e55a1c76
18 changed files with 33 additions and 35 deletions
|
@ -13,9 +13,9 @@ function onEventStarted(player, actor, triggerName, name, arg1, arg2, arg3, baza
|
|||
local bazaarActor = nil;
|
||||
|
||||
if (name ~= nil) then
|
||||
bazaarActor = player:GetZone():FindPCInZone(name);
|
||||
bazaarActor = player.CurrentArea:FindPCInZone(name);
|
||||
elseif (bazaarActorId ~= nil) then
|
||||
bazaarActor = player:GetZone():FindActorInArea(bazaarActorId);
|
||||
bazaarActor = player.CurrentArea:FindActorInArea(bazaarActorId);
|
||||
end
|
||||
|
||||
if (bazaarActor ~= nil) then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue