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

7 lines
302 B
Lua

local XHomeCharSetStayOffsetNode = XLuaBehaviorManager.RegisterNode(XLuaBehaviorNode, "HomeCharSetStayOffest", CsBehaviorNodeType.Action, true, false)
function XHomeCharSetStayOffsetNode:OnEnter()
if self.AgentProxy:SetStayOffset() then
self.Node.Status = CsNodeStatus.SUCCESS
end
end