Port missions to the new Paratroopers API.
This commit is contained in:
committed by
Matthias Mailänder
parent
c0587cc568
commit
d73ed7670a
@@ -95,9 +95,11 @@ end
|
||||
SendUSSRParadrops = function(facing, dropzone)
|
||||
local paraproxy = Actor.Create("powerproxy.paratroopers", false, { Owner = ussr })
|
||||
|
||||
local units = paraproxy.SendParatroopers(dropzone.CenterPosition, false, facing)
|
||||
Utils.Do(units, function(unit)
|
||||
IdleHunt(unit)
|
||||
local aircraft = paraproxy.ActivateParatroopers(dropzone.CenterPosition, facing)
|
||||
Utils.Do(aircraft, function(a)
|
||||
Trigger.OnPassengerExited(a, function(t, p)
|
||||
IdleHunt(p)
|
||||
end)
|
||||
end)
|
||||
|
||||
paraproxy.Destroy()
|
||||
|
||||
Reference in New Issue
Block a user