PGRData/Script/matrix/xhome/xdorm/xhomechar/xhomecharnode/XHomeCharEventRewardNode.lua

6 lines
No EOL
277 B
Lua

local XHomeCharEventRewardNode = XLuaBehaviorManager.RegisterNode(XLuaBehaviorNode, "HomeCharEventReward", CsBehaviorNodeType.Action, true, false)
function XHomeCharEventRewardNode:OnEnter()
self.AgentProxy:ShowEventReward()
self.Node.Status = CsNodeStatus.SUCCESS
end