CSAR give scripted spawned pilots a name.

CTLD corrected that generic troops could be spawned only once.
This commit is contained in:
Applevangelist
2021-07-06 20:24:35 +02:00
parent b7bc3cfbcf
commit 5d3ea57d4d
2 changed files with 13 additions and 10 deletions

View File

@@ -663,7 +663,7 @@ function CSAR:_SpawnCsarAtZone( _zone, _coalition, _description, _randomPoint, _
return
end
local _description = _description or "none"
local _description = _description or "Unknown"
local pos = {}
if _randomPoint then
@@ -682,7 +682,7 @@ function CSAR:_SpawnCsarAtZone( _zone, _coalition, _description, _randomPoint, _
_country = country.id.UN_PEACEKEEPERS
end
self:_AddCsar(_coalition, _country, pos, "PoW", "Unknown", nil, freq, _nomessage, _description)
self:_AddCsar(_coalition, _country, pos, "PoW", _description, nil, freq, _nomessage, _description)
return self
end