PGRData/Resources/Scripts/XHome/XDorm/XHomeChar/XHomeCharNode/XHomeCharCheckDisInteractFurnitureNode.lua
2022-12-26 14:06:01 +05:30

9 lines
409 B
Lua

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