getManagerGraphNode
Definition
-- @/lua/ge/extensions/core/flowgraphManager.lua:78
local function getManagerGraphNode(mgrId, graphId, nodeId) -- safely retrieves a node from an active manager; returns nil if any id fails
-- use this instead of core_flowgraphManager.getManagerByID(mid).graphs[gid].nodes[nid]
local mgr = getManagerByID(mgrId)
if mgr then
if mgr.graphs[graphId] then
return mgr.graphs[graphId].nodes[nodeId]
end
end
end
Callers
@/lua/ge/extensions/flowgraph/nodes/vehicle/ai/getAIMode.lua
function C:getCmd()
return 'obj:queueGameEngineLua("local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:getAIMode(\'"..ai.getState().mode.."\') end")'
end
@/lua/ge/extensions/flowgraph/nodes/vehicle/spawnVehicle.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end
@/lua/ge/extensions/flowgraph/nodes/ui/vehicleSelector.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end
data.portraitImg.start = self.pinIn.portraitImg.value or nil
data.callObj = 'core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..')'
dump("THIS IS THE CALL OBJ")
@/lua/ge/extensions/flowgraph/nodes/ui/startScreen.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end
data.portraitImg.start = self.pinIn.portraitImg.value or nil
data.callObj = 'core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..')'
data.readyHook = data.callObj .. ':started()'
@/lua/ge/extensions/flowgraph/nodes/career/careerVehicleSelect.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end
@/lua/ge/extensions/flowgraph/nodes/ui/updatedUI/endScreenWhole.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end
@/lua/ge/extensions/flowgraph/nodes/ui/missionEndScreen.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end
@/lua/ge/extensions/flowgraph/nodes/vehicle/special/customVehicleGetter.lua
function C:getCmd()
return 'obj:queueGameEngineLua("local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:returnValue(\'"..serialize('..self.data.fun..').."\') end")'
end
@/lua/ge/extensions/flowgraph/nodes/ui/threeElementSelect.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end
@/lua/ge/extensions/flowgraph/nodes/ui/selectButtons.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end
@/lua/ge/extensions/flowgraph/nodes/ui/missionPopup.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end
label = self.pinIn.buttonText.value or "ui.scenarios.start.start",
clickLua = 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:started() end'
}
@/lua/ge/extensions/flowgraph/nodes/gameplay/race/raceEndScreen.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end
@/lua/ge/extensions/flowgraph/nodes/ui/endScreen.lua
function C:getCmd(action)
return 'local n = core_flowgraphManager.getManagerGraphNode('..self.mgr.id..', '..self.graph.id..', '..self.id..') if n then n:buttonPushed("'..action..'") end'
end