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

9 lines
346 B
Lua
Raw Normal View History

local XHomeCharInteractNode = XLuaBehaviorManager.RegisterNode(XLuaBehaviorNode, "HomeCharInteract", CsBehaviorNodeType.Action, true, false)
function XHomeCharInteractNode:OnEnter()
if self.AgentProxy:InteractFurniture() then
self.Node.Status = CsNodeStatus.SUCCESS
else
self.Node.Status = CsNodeStatus.FAILED
end
end