mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-17 12:50:22 +00:00
Merge remote-tracking branch 'origin/master-ng' into develop
This commit is contained in:
@@ -2184,7 +2184,8 @@ function CONTROLLABLE:TaskFunction( FunctionString, ... )
|
|||||||
local ArgumentKey = '_' .. tostring( arg ):match( "table: (.*)" )
|
local ArgumentKey = '_' .. tostring( arg ):match( "table: (.*)" )
|
||||||
self:SetState( self, ArgumentKey, arg )
|
self:SetState( self, ArgumentKey, arg )
|
||||||
DCSScript[#DCSScript + 1] = "local Arguments = MissionControllable:GetState( MissionControllable, '" .. ArgumentKey .. "' ) "
|
DCSScript[#DCSScript + 1] = "local Arguments = MissionControllable:GetState( MissionControllable, '" .. ArgumentKey .. "' ) "
|
||||||
DCSScript[#DCSScript + 1] = FunctionString .. "( MissionControllable, unpack( Arguments ) )"
|
--DCSScript[#DCSScript + 1] = FunctionString .. "( MissionControllable, unpack( Arguments ) )"
|
||||||
|
DCSScript[#DCSScript + 1] = FunctionString .. "( MissionControllable, ((type(Arguments)=='table') and unpack(Arguments) or nil))"
|
||||||
else
|
else
|
||||||
DCSScript[#DCSScript + 1] = FunctionString .. "( MissionControllable )"
|
DCSScript[#DCSScript + 1] = FunctionString .. "( MissionControllable )"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user