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

9 lines
No EOL
346 B
Lua

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