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