forked from endernon/PGRData
8 lines
No EOL
370 B
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 |