From 3eb520fcd069d7b7b98e49d6d64529ab4b494961 Mon Sep 17 00:00:00 2001 From: Taggerung Date: Tue, 20 Feb 2024 19:48:12 +1030 Subject: [PATCH] Boat Teleport Adds teleport addAction to driver of Able boat --- init.sqf | 23 ++++- mission.sqm | 219 +++++++++++++++++++++++++++++++++++++++++++--- teleportBoats.sqf | 2 + 3 files changed, 233 insertions(+), 11 deletions(-) create mode 100644 teleportBoats.sqf diff --git a/init.sqf b/init.sqf index ea0b117..be66a35 100644 --- a/init.sqf +++ b/init.sqf @@ -1 +1,22 @@ -null = execVM "briefing.sqf"; \ No newline at end of file +null = execVM "briefing.sqf"; + +busterTele = { + if (driver vehicle player isEqualTo player) then { + if ((vehicle player)==LCA_Alpha) then { + LCA_Alpha setDir 90; + LCA_Alpha setPos [8259.05,11675.7,5]; + + LCA_Bravo setDir 90; + LCA_Bravo setPos [8249.38,11702,5]; + + LCA_Charlie setDir 90; + LCA_Charlie setPos [8242.38,11655.3,5]; + + LCA_Delta setDir 90; + LCA_Delta setPos [8227.13,11718.6,5]; + + LCA_Echo setDir 90; + LCA_Echo setPos [8222.25,11638.6,5]; + }; + }; +}; \ No newline at end of file diff --git a/mission.sqm b/mission.sqm index d0f4d4d..325aef4 100644 --- a/mission.sqm +++ b/mission.sqm @@ -5,14 +5,14 @@ class EditorData angleGridStep=0.017453292; scaleGridStep=1; autoGroupingDist=10; - toggles=1581; + toggles=1069; mods[]= { "3denEnhanced" }; class ItemIDProvider { - nextID=1462; + nextID=1476; }; class MarkerIDProvider { @@ -20,14 +20,14 @@ class EditorData }; class LayerIndexProvider { - nextID=96; + nextID=103; }; class Camera { - pos[]={4908.4175,65.410828,15521.584}; - dir[]={0.016577397,-0.3086493,-0.95103145}; - up[]={0.0053792382,0.95117587,-0.30860242}; - aside[]={-0.99984813,0,-0.017428318}; + pos[]={8112.5693,38.259193,11685.499}; + dir[]={0.88315713,-0.46095175,-0.087074786}; + up[]={0.45873097,0.88742226,-0.045228671}; + aside[]={-0.098120101,-3.6528218e-007,-0.99518538}; }; }; binarizationWanted=0; @@ -86,13 +86,15 @@ addons[]= "A3_Ui_F", "WW2_SPE_Core_c_UI_Gui_c", "CUP_CAStructures_Misc_Powerlines", - "WW2_SPE_Core_c_FX_ParticleEffects_c_Objects_c" + "WW2_SPE_Core_c_FX_ParticleEffects_c_Objects_c", + "A3_Structures_F_Civ_Camping", + "cba_xeh" }; class AddonsMetaData { class List { - items=52; + items=53; class Item0 { className="A3_Modules_F"; @@ -396,6 +398,13 @@ class AddonsMetaData className="WW2_SPE_Core_c_FX_ParticleEffects_c_Objects_c"; name="WW2_SPE_Core_c_FX_ParticleEffects_c_Objects_c"; }; + class Item52 + { + className="A3_Structures_F"; + name="Arma 3 - Buildings and Structures"; + author="Bohemia Interactive"; + url="https://www.arma3.com"; + }; }; }; dlcs[]= @@ -579,7 +588,7 @@ class Mission }; class Entities { - items=205; + items=211; class Item0 { dataType="Logic"; @@ -14535,6 +14544,196 @@ class Mission type="Land_SPE_FX_light_300"; atlOffset=10.154999; }; + class Item205 + { + dataType="Object"; + class PositionInfo + { + position[]={4926,57.927601,15455.422}; + angles[]={6.2202659,0,0}; + }; + side="Empty"; + flags=4; + class Attributes + { + init="this addAction [("""" + (""Begin Assault!"") + """"),""teleportBoats.sqf"",[1],0,false,true,"""","" driver _target == _this""];"; + name="LCA_Alpha"; + }; + id=1462; + type="PN_B_NACS_Assault_Boat"; + atlOffset=-3.8146973e-006; + class CustomAttributes + { + class Attribute0 + { + property="ammoBox"; + expression="[_this,_value] call bis_fnc_initAmmoBox;"; + class Value + { + class data + { + singleType="STRING"; + value="[[[[""FirstAidKit""],[2]],[[],[]],[[],[]],[[],[]]],false]"; + }; + }; + }; + nAttributes=1; + }; + }; + class Item206 + { + dataType="Object"; + class PositionInfo + { + position[]={4921.6973,57.704903,15454.614}; + angles[]={6.1733871,0,0.047211155}; + }; + side="Empty"; + flags=4; + class Attributes + { + name="LCA_Bravo"; + }; + id=1463; + type="PN_B_NACS_Assault_Boat"; + atlOffset=-0.0038871765; + class CustomAttributes + { + class Attribute0 + { + property="ammoBox"; + expression="[_this,_value] call bis_fnc_initAmmoBox;"; + class Value + { + class data + { + singleType="STRING"; + value="[[[[""FirstAidKit""],[2]],[[],[]],[[],[]],[[],[]]],false]"; + }; + }; + }; + nAttributes=1; + }; + }; + class Item207 + { + dataType="Object"; + class PositionInfo + { + position[]={4918.2324,57.642181,15453.792}; + angles[]={6.1733871,0,6.2247519}; + }; + side="Empty"; + flags=4; + class Attributes + { + name="LCA_Charlie"; + }; + id=1464; + type="PN_B_NACS_Assault_Boat"; + class CustomAttributes + { + class Attribute0 + { + property="ammoBox"; + expression="[_this,_value] call bis_fnc_initAmmoBox;"; + class Value + { + class data + { + singleType="STRING"; + value="[[[[""FirstAidKit""],[2]],[[],[]],[[],[]],[[],[]]],false]"; + }; + }; + }; + nAttributes=1; + }; + }; + class Item208 + { + dataType="Object"; + class PositionInfo + { + position[]={4913.9292,57.807812,15452.984}; + angles[]={6.1733871,0,6.2247519}; + }; + side="Empty"; + flags=4; + class Attributes + { + name="LCA_Delta"; + }; + id=1465; + type="PN_B_NACS_Assault_Boat"; + atlOffset=0.0029983521; + class CustomAttributes + { + class Attribute0 + { + property="ammoBox"; + expression="[_this,_value] call bis_fnc_initAmmoBox;"; + class Value + { + class data + { + singleType="STRING"; + value="[[[[""FirstAidKit""],[2]],[[],[]],[[],[]],[[],[]]],false]"; + }; + }; + }; + nAttributes=1; + }; + }; + class Item209 + { + dataType="Object"; + class PositionInfo + { + position[]={4910.6973,57.95311,15452.614}; + angles[]={6.1733871,0,6.2247519}; + }; + side="Empty"; + flags=4; + class Attributes + { + name="LCA_Echo"; + }; + id=1466; + type="PN_B_NACS_Assault_Boat"; + class CustomAttributes + { + class Attribute0 + { + property="ammoBox"; + expression="[_this,_value] call bis_fnc_initAmmoBox;"; + class Value + { + class data + { + singleType="STRING"; + value="[[[[""FirstAidKit""],[2]],[[],[]],[[],[]],[[],[]]],false]"; + }; + }; + }; + nAttributes=1; + }; + }; + class Item210 + { + dataType="Object"; + class PositionInfo + { + position[]={9708,15.236954,11039.043}; + }; + side="Empty"; + flags=4; + class Attributes + { + }; + id=1467; + type="Campfire_burning_F"; + atlOffset=-0.012629509; + }; }; class Connections { diff --git a/teleportBoats.sqf b/teleportBoats.sqf new file mode 100644 index 0000000..bfd637d --- /dev/null +++ b/teleportBoats.sqf @@ -0,0 +1,2 @@ +[] remoteExec ["busterTele", [0,2]]; +removeAllActions LCA_Alpha; \ No newline at end of file