mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Cargo and smoke
This commit is contained in:
@@ -312,7 +312,7 @@ do -- TASK_CARGO
|
|||||||
self:E( { TaskUnit = TaskUnit, Task = Task and Task:GetClassNameAndID() } )
|
self:E( { TaskUnit = TaskUnit, Task = Task and Task:GetClassNameAndID() } )
|
||||||
|
|
||||||
|
|
||||||
self.Cargo = Cargo
|
self.Cargo = Cargo -- Core.Cargo#CARGO
|
||||||
Task:SetCargoPickup( self.Cargo, TaskUnit )
|
Task:SetCargoPickup( self.Cargo, TaskUnit )
|
||||||
self:__RouteToPickupPoint( -0.1 )
|
self:__RouteToPickupPoint( -0.1 )
|
||||||
end
|
end
|
||||||
@@ -326,6 +326,7 @@ do -- TASK_CARGO
|
|||||||
self:E( { TaskUnit = TaskUnit, Task = Task and Task:GetClassNameAndID() } )
|
self:E( { TaskUnit = TaskUnit, Task = Task and Task:GetClassNameAndID() } )
|
||||||
|
|
||||||
if TaskUnit:IsAir() then
|
if TaskUnit:IsAir() then
|
||||||
|
self.Cargo.CargoObject:GetUnit(1):SmokeRed()
|
||||||
self:__Land( -0.1, "Pickup" )
|
self:__Land( -0.1, "Pickup" )
|
||||||
else
|
else
|
||||||
self:__SelectAction( -0.1 )
|
self:__SelectAction( -0.1 )
|
||||||
|
|||||||
Reference in New Issue
Block a user