Merge branch 'master' into funkyfranky

This commit is contained in:
funkyfranky
2017-08-02 21:28:46 +02:00
7 changed files with 260 additions and 111 deletions

View File

@@ -340,7 +340,7 @@ function CONTROLLABLE:SetTask( DCSTask, WaitTime )
-- Therefore we schedule the functions to set the mission and options for the Controllable.
-- Controller.setTask( Controller, DCSTask )
if not WaitTime then
if not WaitTime or WaitTime == 0 then
Controller:setTask( DCSTask )
else
self.TaskScheduler:Schedule( Controller, Controller.setTask, { DCSTask }, WaitTime )