mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
feat: add function to get if there's any backup data
This commit is contained in:
@@ -362,6 +362,10 @@ function RADAR:SetBackupAntennaData( ant, data )
|
|||||||
self.backupData.antennas[ant] = data
|
self.backupData.antennas[ant] = data
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function RADAR:IsThereBackupData()
|
||||||
|
return self:GetBackupOMData() ~= nil or self:GetBackupAntennaData( "front" ) ~= nil or self:GetBackupAntennaData( "rear" ) ~= nil
|
||||||
|
end
|
||||||
|
|
||||||
-- Used when the player becomes a passenger in another vehicle. The local data is backed up to make way for the data
|
-- Used when the player becomes a passenger in another vehicle. The local data is backed up to make way for the data
|
||||||
-- provided by the driver. When the player becomes the driver again, the local data is restored.
|
-- provided by the driver. When the player becomes the driver again, the local data is restored.
|
||||||
function RADAR:BackupData()
|
function RADAR:BackupData()
|
||||||
|
|||||||
Reference in New Issue
Block a user