applyConditionSnapshot
Definition
-- @/lua/vehicle/partCondition.lua:50
local function applyConditionSnapshot(snapshotKey)
if not snapshotKey then
log("E", "", "No key provided, cannot create snapshot...")
return
end
local snapshotData = savedConditionSnapshots[snapshotKey]
if not snapshotData then
log("E", "partCondition.applyConditionSnapshot", "No snapshot data found, cannot apply snapshot with key: " .. snapshotKey)
return
end
hasSetPartCondition = {}
M.initConditions(snapshotData)
end
Callers
@/lua/vehicle/partCondition.lua
applyConditionSnapshot(resetSnapshotKey)
end
@/lua/vehicle/extensions/gameplayInterfaceModules/interactPartCondition.lua
local function applyConditionSnapshot(params)
local dataTypeCheck, dataTypeError = checkTableDataTypes(params, {"string"})
local snapshotKey = params[1]
partCondition.applyConditionSnapshot(snapshotKey)
end