PGRData/Script/matrix/xrestaurant/xnode/XRestaurantRandomPathNode.lua
2024-09-01 22:49:41 +02:00

11 lines
No EOL
386 B
Lua

---@class XRestaurantRandomPathNode : XLuaBehaviorNode
---@field AgentProxy XRestaurantCharAgent
local XRestaurantRandomPathNode = XLuaBehaviorManager.RegisterNode(XLuaBehaviorNode,
"RestaurantRandomPath", CsBehaviorNodeType.Action, true, false)
function XRestaurantRandomPathNode:OnEnter()
self.AgentProxy:DoRandomPath()
self.Node.Status = CsNodeStatus.SUCCESS
end