diff --git a/README.md b/README.md index 934cbe4..53c4616 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Install server in ```Scripts``` folder and add entry to Export.lua. * 1 : GetDevice(device_id):get_argument_value(argument_id) * 2 : GetDevice(device_id):set_argument_value(argument_id, new_value) * 3 : GetDevice(device_id):performClickableAction(command_id, argument_id) -* 4 : GetDevice(device_id):SetCommandAPI(command_id, new_value) +* 4 : GetDevice(device_id):SetCommand(command_id, new_value) * 5 : GetDevice(device_id):get_frequency() * 6 : GetDevice(device_id):set_frequency(new_value) * 7 : GetDevice(device_id):update_arguments() diff --git a/src/client/DCSInsight/DCSInsight.csproj b/src/client/DCSInsight/DCSInsight.csproj index 6f11a53..877acc7 100644 --- a/src/client/DCSInsight/DCSInsight.csproj +++ b/src/client/DCSInsight/DCSInsight.csproj @@ -6,7 +6,7 @@ true dcs-insight 1.0.0 - 1.8.4 + 1.8.5 Images\Magnifier_icon.ico diff --git a/src/server/Scripts/DCS-INSIGHT/lib/commands/SetCommandAPI.lua b/src/server/Scripts/DCS-INSIGHT/lib/commands/SetCommandAPI.lua index 0da1cc1..5246375 100644 --- a/src/server/Scripts/DCS-INSIGHT/lib/commands/SetCommandAPI.lua +++ b/src/server/Scripts/DCS-INSIGHT/lib/commands/SetCommandAPI.lua @@ -14,7 +14,7 @@ local SetCommandAPI = APIBase:new() --- @param apiId integer API ID, must be unique --- @return APIBase function SetCommandAPI:new(o, apiId) - o = o or APIBase:new(o, apiId, false, "GetDevice(device_id):SetCommandAPI(command_id, new_value)", 3) + o = o or APIBase:new(o, apiId, false, "GetDevice(device_id):SetCommand(command_id, new_value)", 3) o:add_param_def(0, ParamName.device_id, ParamType.number) o:add_param_def(1, ParamName.command_id, ParamType.number)