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

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