GSServer-CBT/soggy_resources/lua/Actor/Gadget/Q371Trigger.lua
Akbar Yahya e0d4d8040c melon
2022-11-21 16:30:31 +08:00

30 lines
678 B
Lua

require('Actor/ActorCommon')
local gadgetActorProxy = require('Actor/Gadget/GadgetActorProxy')
local Q371Trigger = class("Q371Trigger", gadgetActorProxy)
Q371Trigger.defaultAlias = "Q371Trigger"
local q371Cfg = require('Quest/Client/Q371ClientConfig')
function Q371Trigger:OnPostDataPrepare()
end
function Q371Trigger:OnPostComponentPrepare()
self:AddComponentTrigger(8, DistType.EULER, M.Pos(0, 0.8, 0), self.TriggerIn, self.TriggerOut)
end
function Q371Trigger:TriggerIn()
local quest = actorMgr:GetActor(q371Cfg.ActorAlias)
if quest ~= nil then
quest:FinishQuest(false, nil)
end
self:DestroySelf()
end
function Q371Trigger:TriggerOut()
end
return Q371Trigger