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

8 lines
No EOL
370 B
Lua

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