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

9 lines
370 B
Lua
Raw Normal View History

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