mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#CONTROLLER
* Fix for Link4
This commit is contained in:
parent
91a445961b
commit
0cd6a59ce4
@ -690,7 +690,8 @@ function CONTROLLABLE:CommandActivateACLS( UnitID, Name, Delay )
|
|||||||
if Delay and Delay > 0 then
|
if Delay and Delay > 0 then
|
||||||
SCHEDULER:New( nil, self.CommandActivateACLS, { self, UnitID, Name }, Delay )
|
SCHEDULER:New( nil, self.CommandActivateACLS, { self, UnitID, Name }, Delay )
|
||||||
else
|
else
|
||||||
self:SetCommand( CommandActivateACLS )
|
local controller = self:_GetController()
|
||||||
|
controller:setCommand( CommandActivateACLS )
|
||||||
end
|
end
|
||||||
|
|
||||||
return self
|
return self
|
||||||
@ -711,7 +712,8 @@ function CONTROLLABLE:CommandDeactivateACLS( Delay )
|
|||||||
if Delay and Delay > 0 then
|
if Delay and Delay > 0 then
|
||||||
SCHEDULER:New( nil, self.CommandDeactivateACLS, { self }, Delay )
|
SCHEDULER:New( nil, self.CommandDeactivateACLS, { self }, Delay )
|
||||||
else
|
else
|
||||||
self:SetCommand( CommandDeactivateACLS )
|
local controller = self:_GetController()
|
||||||
|
controller:setCommand( CommandDeactivateACLS )
|
||||||
end
|
end
|
||||||
|
|
||||||
return self
|
return self
|
||||||
@ -772,7 +774,8 @@ function CONTROLLABLE:CommandActivateLink4(Frequency, UnitID, Callsign, Delay)
|
|||||||
if Delay and Delay>0 then
|
if Delay and Delay>0 then
|
||||||
SCHEDULER:New(nil, self.CommandActivateLink4, {self, Frequency, UnitID, Callsign}, Delay)
|
SCHEDULER:New(nil, self.CommandActivateLink4, {self, Frequency, UnitID, Callsign}, Delay)
|
||||||
else
|
else
|
||||||
self:SetCommand(CommandActivateLink4)
|
local controller = self:_GetController()
|
||||||
|
controller:setCommand(CommandActivateLink4)
|
||||||
end
|
end
|
||||||
|
|
||||||
return self
|
return self
|
||||||
@ -810,7 +813,8 @@ function CONTROLLABLE:CommandDeactivateLink4(Delay)
|
|||||||
if Delay and Delay>0 then
|
if Delay and Delay>0 then
|
||||||
SCHEDULER:New(nil, self.CommandDeactivateLink4, {self}, Delay)
|
SCHEDULER:New(nil, self.CommandDeactivateLink4, {self}, Delay)
|
||||||
else
|
else
|
||||||
self:SetCommand(CommandDeactivateLink4)
|
local controller = self:_GetController()
|
||||||
|
controller:setCommand(CommandDeactivateLink4)
|
||||||
end
|
end
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user