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

8 lines
370 B
Lua

local XHomeCharCheckInteractNode = XLuaBehaviorManager.RegisterNode(XLuaBehaviorNode, "HomeCharCheckInteract", CsBehaviorNodeType.Condition, true, false)
function XHomeCharCheckInteractNode:OnEnter()
if self.AgentProxy:CheckFurnitureInteract() then
self.Node.Status = CsNodeStatus.SUCCESS
else
self.Node.Status = CsNodeStatus.FAILED
end
end