From e559543869fc5a6d65200cde526c39d64e14fd51 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sat, 27 Jan 2024 00:36:48 +0100 Subject: [PATCH 1/2] Fix custom location --- =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf index 0c5023856..2e26a40ea 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf @@ -32,7 +32,7 @@ params [ ["_name", "", [""]], ["_cachingRadius", 0, [0]], ["_has_en", false, [false]], - ["_id", count btc_city_all, [0]] + ["_id", (selectMin keys btc_city_all) - 1, [0]] ]; private _city = createTrigger ["EmptyDetector", [_position select 0, _position select 1, getTerrainHeightASL _position], false]; From 8880df2aa455572c1426d6f2adc87381e27789b6 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 28 Jan 2024 12:09:11 +0100 Subject: [PATCH 2/2] Use only negative ID for custom location --- =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf | 2 +- =BTC=co@30_Hearts_and_Minds.Altis/define_mod.sqf | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf index 2e26a40ea..9877b1630 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf @@ -32,7 +32,7 @@ params [ ["_name", "", [""]], ["_cachingRadius", 0, [0]], ["_has_en", false, [false]], - ["_id", (selectMin keys btc_city_all) - 1, [0]] + ["_id", (0 min (selectMin keys btc_city_all)) - 1, [0]] ]; private _city = createTrigger ["EmptyDetector", [_position select 0, _position select 1, getTerrainHeightASL _position], false]; diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/define_mod.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/define_mod.sqf index 15e7826c4..75ef426cb 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/define_mod.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/define_mod.sqf @@ -4,6 +4,9 @@ btc_custom_loc = [ Possible types: "NameVillage","NameCity","NameCityCapital","NameLocal","Hill","Airport","NameMarine", "StrongpointArea", "BorderCrossing", "VegetationFir" EXAMPLE: [[13132.8,3315.07,0.00128174],"NameVillage","Mountain 1",800,true] */ + [[10280.2,9128.2,0.00128174],"NameVillage","Mountain 1",800,true], + [[9280.2,9028.207,0.00128174],"NameVillage","Mountain 2",800,true], + [[13280.2,9000.2,0.00128174],"NameVillage","Mountain 3",800,true] ]; /*