Update RAT.lua

Fixed bug with uncontrolled spawning.
This commit is contained in:
Frank 2019-12-19 13:11:58 +01:00
parent 07edcd7e73
commit f48f53fb37

View File

@ -5173,6 +5173,7 @@ function RAT:_ModifySpawnTemplate(waypoints, livery, spawnplace, departure, take
if self.uncontrolled then if self.uncontrolled then
-- This is used in the SPAWN:SpawnWithIndex() function. Some values are overwritten there! -- This is used in the SPAWN:SpawnWithIndex() function. Some values are overwritten there!
self.SpawnUnControlled=true self.SpawnUnControlled=true
SpawnTemplate.uncontrolled=true
end end
-- Number of units in the group. With grouping this can actually differ from the template group size! -- Number of units in the group. With grouping this can actually differ from the template group size!