getCachedVehicleData
Definition
-- @/lua/ge/extensions/core/vehicleBridge.lua:124
local function getCachedVehicleData(vehId, key)
if not M.vehicleData[vehId] then return nil end
return M.vehicleData[vehId].data[key]
end
Callers
@/lua/ge/extensions/flowgraph/modules/vehicleModule.lua
function C:isBusKneel(id) return core_vehicleBridge.getCachedVehicleData(id, 'kneel') == 1 end
function C:isBusDoorOpen(id) return core_vehicleBridge.getCachedVehicleData(id, 'dooropen') == 1 end
function C:isBusKneel(id) return core_vehicleBridge.getCachedVehicleData(id, 'kneel') == 1 end
function C:isBusDoorOpen(id) return core_vehicleBridge.getCachedVehicleData(id, 'dooropen') == 1 end
@/lua/ge/extensions/flowgraph/nodes/vehicle/gForce.lua
for k, _ in pairs(values) do
values[k] = core_vehicleBridge.getCachedVehicleData(vehId, k)
if not values[k] then
@/lua/ge/extensions/gameplay/discover/discover_037.lua
step.complete = false
--print(core_vehicleBridge.getCachedVehicleData(limoId, "ignitionLevel"))
if core_vehicleBridge.getCachedVehicleData(limoId, "ignitionLevel") == 2 then
--print(core_vehicleBridge.getCachedVehicleData(limoId, "ignitionLevel"))
if core_vehicleBridge.getCachedVehicleData(limoId, "ignitionLevel") == 2 then
step.complete = true
@/lua/ge/extensions/gameplay/rally/cutCapture.lua
local steering = core_vehicleBridge.getCachedVehicleData(self.vehicle:getId(), steeringKey)
if steering ~= nil then
@/lua/ge/extensions/flowgraph/nodes/vehicle/getElectricsValue.lua
if self._setupData then
local val = core_vehicleBridge.getCachedVehicleData(self._setupData.vehId, self._setupData.key)
if val ~= nil then
@/lua/ge/extensions/gameplay/rally/vehicleCapture.lua
local steering = core_vehicleBridge.getCachedVehicleData(self.vehicle:getId(), steeringKey)
if steering ~= nil then
@/lua/ge/extensions/scenario/scenarios.lua
local throttle = core_vehicleBridge.getCachedVehicleData(vehicleID, 'throttle')
if throttle and throttle > 0 then