-
Content Count
1304 -
Joined
-
Last visited
-
Medals
Everything posted by twirly
-
Activate a trigger when height >15
twirly replied to ArmAriffic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Try this mate.... one way of doing it (spawning a script). Leave the condition field as this. In the onAct:- nul = [thislist] spawn {_list = _this select 0; if ((vehicle player) in _list and vehicle player isKindOf "Air" and ((getpos player) select 2) < 15) then {hint "player is under 15m"}}; ..or the second way (executing an actual script):- Leave the condition field as this. In the onAct:- nul = [thislist] execVM "test.sqf"; test.sqf:- _list = _this select 0; if (vehicle player in _list and (vehicle player) isKindOf "LandVehicle" and ((getpos player) select 2) < 15) then { //code here executed when player is in Air vehicle and under 15m height. hint "player is in an AIR vehicle and is under 15m"; }; EDIT:...I was too slow. -
Hi... one glaring error there....you're using the variable support for two different things.
-
Getting camera to follow an A-10 fighter
twirly replied to iceman11a's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Nope. I noticed that too. -
Spawn missile that locks on?
twirly replied to kocrachon's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
You can try this (not tested). Look for this.... //secondary target used for random trajectory when laser designator is turned off prematurily [b]_secondaryTarget = "HeliHEmpty" createVehicle _defaultTargetPos;[/b] ...and change that second line to this. _secondaryTarget = "HeliHEmpty" createVehicle getpos _primaryTarget; This should create the secondary target at the primary target position. Hope it works! -
Getting camera to follow an A-10 fighter
twirly replied to iceman11a's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Looks like .sqs and .sqf code mixed together. Is it saved as an .sqs?.... because it won't work if saved as .sqf! There's no goto in sqf. You also execute .sqs files a different way to .sqf..... use exec not execVM. The semi-colon ";" in sqs is a comment ...while in sqf it's a line terminator. Big difference. -
Map or editor created locations as waypoints
twirly replied to katipo66's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Ah.... I see a gremlin which may be my fault from much higher up in the thread. Maybe try this then. Include the nul= {[b]nul =[/b] [leader _x,LOCS] execVM "script.sqf"} foreach allGroups; -
Map or editor created locations as waypoints
twirly replied to katipo66's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
@Katipo66 Change your code to the proper stuff Bro.... even if what you have works don't use it. It will only cause confusion in the future. -
Map or editor created locations as waypoints
twirly replied to katipo66's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Well I'm not sure how or why that works! It either should not work at all or should give weird results! The proper syntax according to the Wiki for execVM is either (passing multiple variables)... _handle = [b][a,b,c][/b] execVM "script.sqf"; or (passing single variable) ... _handle = [b]player[/b] execVM "script.sqf"; -
AI helicopter pilot to rotate helicopter?
twirly replied to rejenorst's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I personally don't think anything will work. In any vehicle with an AI driver... being a gunner is almost impossible. That's just my opinion however.... maybe others have different ideas about it. You can rotate the helo by using setDir.... but this is not an ideal solution. The code below will rotate a helo. This particular code was used to rotate a helo on landing so that it points to the direction it came in to the LZ. _dir = getDir _helo; //turns the helo for [{_i=0},{_i<180},{_i=_i+1}] do { _helo setDir _dir + _i; sleep 0.01; }; You would have to keep applying the setDir to the helo every .x seconds to keep it pointing at the target. What this will end up looking like I have no idea. -
Map or editor created locations as waypoints
twirly replied to katipo66's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
It should work like this.... {[leader _x,LOCS] execVM "script.sqf"} foreach allGroups; EDIT:- Another way.... same result... for "_i" from 0 to ((count allGroups)-1) do { _group = allGroups select _i; _leader = leader _group; [_leader,LOCS] execVM "script.sqf"; sleep 0.01; }; -
Map or editor created locations as waypoints
twirly replied to katipo66's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Like this... [[url="http://community.bistudio.com/wiki/allGroups"]allGroups[/url], LOCS] execVM "SCRIPTNAME.sqf"; -
Need Help with BIS_fnc_spawnVehicle
twirly replied to dragon zen's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
For the position give the z coordinate of the position [x,y,z] a value. Other than that the code works fine. Seems you have something going on somewhere with AHType. Look for previous occurences of it and see if you can sort it out. I used position player here to test. But you probably need [_pos select 0 , _pos select 1, 100] to create the helo 100m up. AHType = "AH1Z"; _heligp = [[b][(position player) select 0,(position player) select 1,100][/b], 10, AHType, west] call BIS_fnc_spawnVehicle; -
I killed my mission.sqm! Any formatting wizards?
twirly replied to maturin's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Great that you got it working! -
I killed my mission.sqm! Any formatting wizards?
twirly replied to maturin's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Come to think of it.... that may not even be related to why the mission is not loading. It may be just a normal BAF error. Don't give up yet!! -
I killed my mission.sqm! Any formatting wizards?
twirly replied to maturin's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I can't load it because of this (in my .rpt file) String STR_BAF_CFGMAGAZINES_BAF_PUTIED_V10 not found But game not crashing and not getting the missing "{" Mission here -
I killed my mission.sqm! Any formatting wizards?
twirly replied to maturin's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I think Abs is right..... try this. I still can't load it.... but don't get the missing "}" error. version=11; class Mission { addOns[]= { "cacharacters2", "chernarus", "caweapons_warfare_weapons", "CAWheeled" }; addOnsAuto[]= { "cacharacters2", "caweapons_warfare_weapons", "CAWheeled", "chernarus" }; randomSeed=6515903; class Intel { resistanceWest=0; startWeather=0; forecastWeather=0; year=2008; month=10; day=11; hour=9; minute=20; }; class Groups { items=9; class Item0 { side="WEST"; class Vehicles { items=10; class Item0 { position[]={7114.0977,293.99454,7695.5298}; azimut=60; id=0; side="WEST"; vehicle="CDF_Soldier_TL"; leader=1; rank="LIEUTENANT"; skill=0.59999996; }; class Item1 { position[]={6697.1343,283.02151,7390.0479}; azimut=60; id=1; side="WEST"; vehicle="CDF_Soldier_MG"; rank="SERGEANT"; skill=0.46666664; }; class Item2 { position[]={6688.731,281.39774,7454.145}; azimut=60; id=2; side="WEST"; vehicle="CDF_Soldier_RPG"; rank="CORPORAL"; skill=0.33333331; }; class Item3 { position[]={6689.731,281.97064,7414.7969}; azimut=60; id=3; side="WEST"; vehicle="CDF_Soldier_GL"; rank="CORPORAL"; skill=0.33333331; }; class Item4 { position[]={6690.731,282.43146,7403.6602}; azimut=60; id=4; side="WEST"; vehicle="CDF_Soldier"; rank="CORPORAL"; skill=0.33333331; }; class Item5 { position[]={6682.3267,281.71451,7433.2754}; azimut=60; id=5; side="WEST"; vehicle="CDF_Soldier_MG"; rank="CORPORAL"; skill=0.33333331; }; class Item6 { position[]={6683.3267,282.13663,7415.8691}; azimut=60; id=6; side="WEST"; vehicle="CDF_Soldier_GL"; skill=0.2; }; class Item7 { position[]={6684.3267,282.28897,7411.0024}; azimut=60; id=7; side="WEST"; vehicle="CDF_Soldier_RPG"; skill=0.2; }; class Item8 { position[]={6694.731,281.88394,7412.4048}; azimut=60; id=8; side="WEST"; vehicle="CDF_Soldier"; skill=0.2; }; class Item9 { position[]={6680.0571,281.66083,7451.4233}; azimut=60; id=9; side="WEST"; vehicle="CDF_Soldier_Medic"; skill=0.2; }; }; class Waypoints { items=2; class Item0 { position[]={7296.1401,298.33167,7671.5249}; formation="STAG COLUMN"; class Effects { }; showWP="NEVER"; }; class Item1 { position[]={8081.1704,347.19528,7050.9639}; speed="LIMITED"; class Effects { }; showWP="NEVER"; }; }; }; class Item1 { side="WEST"; class Vehicles { items=10; class Item0 { position[]={7102.1553,293.98999,7691.377}; azimut=54.999996; id=10; side="WEST"; vehicle="CDF_Soldier_TL"; leader=1; rank="LIEUTENANT"; skill=0.59999996; }; class Item1 { position[]={6606.4482,282.91281,7496.7681}; azimut=54.999996; id=11; side="WEST"; vehicle="CDF_Soldier_MG"; rank="SERGEANT"; skill=0.46666664; }; class Item2 { position[]={6607.5952,282.90976,7495.1299}; azimut=54.999996; id=12; side="WEST"; vehicle="CDF_Soldier_RPG"; rank="CORPORAL"; skill=0.33333331; }; class Item3 { position[]={6608.7427,282.90668,7493.4917}; azimut=55; id=13; side="WEST"; vehicle="CDF_Soldier_GL"; rank="CORPORAL"; skill=0.33333331; }; class Item4 { position[]={6609.8896,282.88724,7491.853}; azimut=54.999996; id=14; side="WEST"; vehicle="CDF_Soldier"; rank="CORPORAL"; skill=0.33333331; }; class Item5 { position[]={6611.0371,282.84268,7490.2148}; azimut=54.999996; id=15; side="WEST"; vehicle="CDF_Soldier_MG"; rank="CORPORAL"; skill=0.33333331; }; class Item6 { position[]={6612.1841,282.79813,7488.5767}; azimut=54.999996; id=16; side="WEST"; vehicle="CDF_Soldier_GL"; skill=0.2; }; class Item7 { position[]={6613.3311,282.7536,7486.9385}; azimut=54.999996; id=17; side="WEST"; vehicle="CDF_Soldier_RPG"; skill=0.2; }; class Item8 { position[]={6614.4785,282.70959,7485.2998}; azimut=54.999996; id=18; side="WEST"; vehicle="CDF_Soldier"; skill=0.2; }; class Item9 { position[]={6615.6255,282.69226,7483.6616}; azimut=54.999996; id=19; side="WEST"; vehicle="CDF_Soldier_Medic"; skill=0.2; }; }; class Waypoints { items=2; class Item0 { position[]={7292.8311,297.82492,7672.021}; formation="STAG COLUMN"; class Effects { }; showWP="NEVER"; }; class Item1 { position[]={8112.5171,348.04706,7010.2129}; speed="LIMITED"; class Effects { }; showWP="NEVER"; }; }; }; class Item2 { side="WEST"; class Vehicles { items=10; class Item0 { position[]={7085.6753,293.98999,7686.3438}; azimut=75; id=20; side="WEST"; vehicle="CDF_Soldier_TL"; leader=1; rank="LIEUTENANT"; skill=0.59999996; }; class Item1 { position[]={6571.0225,283.16064,7499.4634}; azimut=75; id=21; side="WEST"; vehicle="CDF_Soldier_MG"; rank="SERGEANT"; skill=0.46666664; }; class Item2 { position[]={6571.54,283.13065,7497.5317}; azimut=75; id=22; side="WEST"; vehicle="CDF_Soldier_RPG"; rank="CORPORAL"; skill=0.33333331; }; class Item3 { position[]={6572.0576,283.09937,7495.5996}; azimut=75; id=23; side="WEST"; vehicle="CDF_Soldier_GL"; rank="CORPORAL"; skill=0.33333331; }; class Item4 { position[]={6572.5757,283.06808,7493.668}; azimut=75; id=24; side="WEST"; vehicle="CDF_Soldier"; rank="CORPORAL"; skill=0.33333331; }; class Item5 { position[]={6573.0933,283.0419,7491.7363}; azimut=75; id=25; side="WEST"; vehicle="CDF_Soldier_MG"; rank="CORPORAL"; skill=0.33333331; }; class Item6 { position[]={6573.6108,283.0235,7489.8042}; azimut=75; id=26; side="WEST"; vehicle="CDF_Soldier_GL"; skill=0.2; }; class Item7 { position[]={6574.1284,283.00711,7487.8726}; azimut=75; id=27; side="WEST"; vehicle="CDF_Soldier_RPG"; skill=0.2; }; class Item8 { position[]={6574.646,282.99435,7485.9404}; azimut=75; id=28; side="WEST"; vehicle="CDF_Soldier"; skill=0.2; }; class Item9 { position[]={6575.1636,282.98428,7484.0088}; azimut=75; id=29; side="WEST"; vehicle="CDF_Soldier_Medic"; skill=0.2; }; }; class Waypoints { items=2; class Item0 { position[]={7288.458,297.15503,7672.5947}; formation="STAG COLUMN"; class Effects { }; showWP="NEVER"; }; class Item1 { position[]={8033.313,347.50754,7100.0928}; idStatic=268045; idObject=-1652007155; speed="LIMITED"; class Effects { }; showWP="NEVER"; }; }; }; class Item3 { side="WEST"; class Vehicles { items=10; class Item0 { position[]={7069.8916,293.98999,7682.5508}; azimut=55; id=30; side="WEST"; vehicle="CDF_Soldier_TL"; leader=1; rank="LIEUTENANT"; skill=0.59999996; }; class Item1 { position[]={6534.7383,283.75333,7499.5425}; azimut=109.99999; id=31; side="WEST"; vehicle="CDF_Soldier_MG"; rank="SERGEANT"; skill=0.46666664; }; class Item2 { position[]={6534.0542,283.7471,7497.6631}; azimut=109.99999; id=32; side="WEST"; vehicle="CDF_Soldier_RPG"; rank="CORPORAL"; skill=0.33333331; }; class Item3 { position[]={6533.3701,283.74323,7495.7837}; azimut=109.99999; id=33; side="WEST"; vehicle="CDF_Soldier_GL"; rank="CORPORAL"; skill=0.33333331; }; class Item4 { position[]={6532.686,283.73938,7493.9043}; azimut=109.99999; id=34; side="WEST"; vehicle="CDF_Soldier"; rank="CORPORAL"; skill=0.33333331; }; class Item5 { position[]={6532.002,283.7399,7492.0249}; azimut=109.99999; id=35; side="WEST"; vehicle="CDF_Soldier_MG"; rank="CORPORAL"; skill=0.33333331; }; class Item6 { position[]={6531.3179,283.75677,7490.1455}; azimut=109.99999; id=36; side="WEST"; vehicle="CDF_Soldier_GL"; skill=0.2; }; class Item7 { position[]={6530.6338,283.77365,7488.2661}; azimut=109.99999; id=37; side="WEST"; vehicle="CDF_Soldier_RPG"; skill=0.2; }; class Item8 { position[]={6529.9497,283.7905,7486.3867}; azimut=109.99999; id=38; side="WEST"; vehicle="CDF_Soldier"; skill=0.2; }; class Item9 { position[]={6529.2656,283.81,7484.5073}; azimut=109.99999; id=39; side="WEST"; vehicle="CDF_Soldier_Medic"; skill=0.2; }; }; class Waypoints { items=2; class Item0 { position[]={7282.3633,296.23022,7672.876}; formation="STAG COLUMN"; class Effects { }; showWP="NEVER"; }; class Item1 { position[]={8143.2925,349.83246,6968.207}; speed="LIMITED"; class Effects { }; showWP="NEVER"; }; }; }; class Item4 { side="WEST"; class Vehicles { items=10; class Item0 { position[]={7053.0557,293.98999,7677.1294}; azimut=84.999992; id=40; side="WEST"; vehicle="CDF_Soldier_TL"; leader=1; rank="LIEUTENANT"; skill=0.59999996; }; class Item1 { position[]={6489.0059,284.84186,7502.5063}; azimut=84.999992; id=41; side="WEST"; vehicle="CDF_Soldier_MG"; rank="SERGEANT"; skill=0.46666664; }; class Item2 { position[]={6489.1802,284.83743,7500.5142}; azimut=84.999992; id=42; side="WEST"; vehicle="CDF_Soldier_RPG"; rank="CORPORAL"; skill=0.33333331; }; class Item3 { position[]={6489.3545,284.80542,7498.522}; azimut=84.999992; id=43; side="WEST"; vehicle="CDF_Soldier_GL"; rank="CORPORAL"; skill=0.33333331; }; class Item4 { position[]={6489.5288,284.76382,7496.5293}; azimut=84.999992; id=44; side="WEST"; vehicle="CDF_Soldier"; rank="CORPORAL"; skill=0.33333331; }; class Item5 { position[]={6489.7031,284.7222,7494.5371}; azimut=84.999992; id=45; side="WEST"; vehicle="CDF_Soldier_MG"; rank="CORPORAL"; skill=0.33333331; }; class Item6 { position[]={6489.8774,284.6806,7492.5444}; azimut=84.999992; id=46; side="WEST"; vehicle="CDF_Soldier_GL"; skill=0.2; }; class Item7 { position[]={6490.0518,284.67273,7490.5522}; azimut=84.999992; id=47; side="WEST"; vehicle="CDF_Soldier_RPG"; skill=0.2; }; class Item8 { position[]={6490.2261,284.66568,7488.5596}; azimut=84.999992; id=48; side="WEST"; vehicle="CDF_Soldier"; skill=0.2; }; class Item9 { position[]={6490.4004,284.6586,7486.5674}; azimut=84.999992; id=49; side="WEST"; vehicle="CDF_Soldier_Medic"; skill=0.2; }; }; class Waypoints { items=2; class Item0 { position[]={7277.2471,295.51682,7672.4048}; formation="STAG COLUMN"; class Effects { }; showWP="NEVER"; }; class Item1 { position[]={8126.7554,348.56564,6991.2744}; speed="LIMITED"; class Effects { }; showWP="NEVER"; }; }; }; class Item5 { side="EAST"; class Vehicles { items=18; class Item0 { position[]={7751.6055,329.60266,7292.332}; azimut=330.08301; special="NONE"; age="ACTUAL"; id=50; side="EAST"; vehicle="Ins_Soldier_AR"; rank="CORPORAL"; skill=0.98413843; text="A"; init="A setunitpos ""down"" ; dostop A ; a addmagazine ""75RND_545X39_RPK"" ; a addmagazine ""75RND_545X39_RPK"" ; a addmagazine ""75RND_545X39_RPK"" ; a addmagazine ""75RND_545X39_RPK"""; }; class Item1 { position[]={7860.8135,376.79123,7620.9292}; azimut=275.08301; id=51; side="EAST"; vehicle="Ins_Soldier_CO"; player="PLAYER COMMANDER"; leader=1; rank="COLONEL"; skill=0.60000002; }; class Item2 { position[]={7667.4712,328.52069,7445.4067}; azimut=266.14294; special="NONE"; age="ACTUAL"; id=52; side="EAST"; vehicle="Ins_Soldier_2"; skill=0.60000002; text="d"; init="d setunitpos ""down"" ;dostop d"; }; class Item3 { position[]={7788.4131,361.66791,7651.6221}; azimut=255.08299; special="NONE"; age="ACTUAL"; id=53; side="EAST"; vehicle="Ins_Soldier_AR"; skill=0.60000002; text="k"; init="k setunitpos ""down"" ;dostop k ; k addmagazine ""75RND_545X39_RPK"" ; k addmagazine ""75RND_545X39_RPK"" ; k addmagazine ""75RND_545X39_RPK"" ; k addmagazine ""75RND_545X39_RPK"""; }; class Item4 { position[]={7823.0967,355.9986,7555.9243}; azimut=255.08299; special="NONE"; age="ACTUAL"; id=54; side="EAST"; vehicle="Ins_Soldier_GL"; skill=0.60000002; text="h"; init="h setunitpos ""down"" ; dostop h; h addmagazine ""75RND_545X39_RPK"""; }; class Item5 { position[]={7664.0879,353.56885,7821.4067}; azimut=221.47784; special="NONE"; age="ACTUAL"; id=55; side="EAST"; vehicle="Ins_Soldier_GL"; skill=0.60000002; text="p"; init="p setunitpos ""down"" ; dostop p"; }; class Item6 { position[]={7733.4077,360.77884,7741.1533}; azimut=208.20084; special="NONE"; age="ACTUAL"; id=56; side="EAST"; vehicle="Ins_Soldier_MG"; skill=0.60000002; text="m"; init="m setunitpos ""down"" ;dostop m"; }; class Item7 { position[]={7822.1626,358.46713,7571.0322}; azimut=255.08284; special="NONE"; age="ACTUAL"; id=57; side="EAST"; vehicle="Ins_Soldier_MG"; skill=0.60000002; text="i"; init="i setunitpos ""down"" ;dostop i"; }; class Item8 { position[]={7703.981,333.28967,7426.9453}; azimut=270.08301; special="NONE"; age="ACTUAL"; id=58; side="EAST"; vehicle="Ins_Soldier_AR"; skill=0.99447161; text="c"; init="c setunitpos ""down"" ;dostop c ; C addmagazine ""75RND_545X39_RPK"" ; C addmagazine ""75RND_545X39_RPK"" ; c addmagazine ""75RND_545X39_RPK"" ; c addmagazine ""75RND_545X39_RPK"""; }; class Item9 { position[]={7683.0259,356.68213,7797.1177}; azimut=247.33784; special="NONE"; age="ACTUAL"; id=59; side="EAST"; vehicle="Ins_Soldier_MG"; skill=0.60000002; text="o"; init="o setunitpos ""down"" ;dostop o"; }; class Item10 { position[]={7704.3359,357.67001,7762.7739}; azimut=233.86099; special="NONE"; age="ACTUAL"; id=60; side="EAST"; vehicle="Ins_Soldier_Sniper"; skill=0.60000002; text="n"; init="n setunitpos ""down"" ;dostop n"; }; class Item11 { position[]={7749.1655,358.4278,7711.6045}; azimut=203.82684; special="NONE"; age="ACTUAL"; id=61; side="EAST"; vehicle="Ins_Soldier_Sniper"; skill=0.60000002; text="l"; init="l setunitpos ""down"" ; dostop l"; }; class Item12 { position[]={7777.4316,346.88849,7508.8037}; azimut=270.08301; special="NONE"; age="ACTUAL"; id=62; side="EAST"; vehicle="Ins_Soldier_Medic"; skill=0.60000002; text="g"; init="g setunitpos ""down"" ;dostop g"; }; class Item13 { position[]={7703.939,335.47745,7464.3218}; azimut=270.08301; special="NONE"; age="ACTUAL"; id=83; side="EAST"; vehicle="Ins_Soldier_1"; skill=0.60000002; text="e"; init="e setunitpos ""down"" ;dostop e; e addmagazine ""75RND_545X39_RPK"""; }; class Item14 { position[]={7748.1714,342.59854,7491.7285}; azimut=275.08301; special="NONE"; age="ACTUAL"; id=84; side="EAST"; vehicle="Ins_Soldier_1"; rank="SERGEANT"; skill=0.60000002; text="f"; init="f setunitpos ""down"" ; dostop f; f addmagazine ""75RND_545X39_RPK"""; }; class Item15 { position[]={7717.5635,332.49173,7385.2759}; azimut=275.08289; special="NONE"; age="ACTUAL"; id=85; side="EAST"; vehicle="Ins_Lopotev"; rank="CAPTAIN"; skill=0.99447161; text="b"; init="b setunitpos ""down"" ;dostop b"; }; class Item16 { position[]={7800.0513,359.67459,7607.4043}; azimut=240.08299; special="NONE"; age="ACTUAL"; id=86; side="EAST"; vehicle="Ins_Soldier_1"; rank="SERGEANT"; skill=0.60000002; text="j"; init="j setunitpos ""down"" ;dostop j; j addmagazine ""75RND_545X39_RPK"""; }; class Item17 { position[]={7788.8564,364.63904,7677.1958}; azimut=236.22057; special="NONE"; id=88; side="EAST"; vehicle="DSHkM_Mini_TriPod"; skill=1; }; }; }; class Item6 { side="WEST"; class Vehicles { items=10; class Item0 { position[]={7038.1133,293.98999,7672.1538}; azimut=45; id=63; side="WEST"; vehicle="CDF_Soldier_TL"; leader=1; rank="LIEUTENANT"; skill=0.59999996; }; class Item1 { position[]={6450.9976,285.49805,7505.4951}; id=64; side="WEST"; vehicle="CDF_Soldier_MG"; rank="SERGEANT"; skill=0.46666664; }; class Item2 { position[]={6452.9976,285.47403,7505.4951}; id=65; side="WEST"; vehicle="CDF_Soldier_RPG"; rank="CORPORAL"; skill=0.33333331; }; class Item3 { position[]={6454.9976,285.45004,7505.4951}; id=66; side="WEST"; vehicle="CDF_Soldier_GL"; rank="CORPORAL"; skill=0.33333331; }; class Item4 { position[]={6456.9976,285.42603,7505.4951}; id=67; side="WEST"; vehicle="CDF_Soldier"; rank="CORPORAL"; skill=0.33333331; }; class Item5 { position[]={6458.9976,285.39804,7505.4951}; id=68; side="WEST"; vehicle="CDF_Soldier_MG"; rank="CORPORAL"; skill=0.33333331; }; class Item6 { position[]={6460.9976,285.36871,7505.4951}; id=69; side="WEST"; vehicle="CDF_Soldier_GL"; skill=0.2; }; class Item7 { position[]={6462.9976,285.33936,7505.4951}; id=70; side="WEST"; vehicle="CDF_Soldier_RPG"; skill=0.2; }; class Item8 { position[]={6464.9976,285.31003,7505.4951}; id=71; side="WEST"; vehicle="CDF_Soldier"; skill=0.2; }; class Item9 { position[]={6466.9976,285.27805,7505.4951}; id=72; side="WEST"; vehicle="CDF_Soldier_Medic"; skill=0.2; }; }; class Waypoints { items=2; class Item0 { position[]={7270.8906,294.78906,7672.4751}; formation="STAG COLUMN"; class Effects { }; showWP="NEVER"; }; class Item1 { position[]={8094.5591,347.59555,7029.4819}; speed="LIMITED"; class Effects { }; showWP="NEVER"; }; }; }; class Item7 { side="WEST"; class Vehicles { items=10; class Item0 { position[]={7018.8623,293.98999,7667.418}; azimut=70; id=73; side="WEST"; vehicle="CDF_Soldier_TL"; leader=1; rank="LIEUTENANT"; skill=0.59999996; }; class Item1 { position[]={6394.5732,286.54279,7508.6299}; id=74; side="WEST"; vehicle="CDF_Soldier_MG"; rank="SERGEANT"; skill=0.46666664; }; class Item2 { position[]={6396.5732,286.50702,7508.6299}; id=75; side="WEST"; vehicle="CDF_Soldier_RPG"; rank="CORPORAL"; skill=0.33333331; }; class Item3 { position[]={6398.5732,286.46313,7508.6299}; id=76; side="WEST"; vehicle="CDF_Soldier_GL"; rank="CORPORAL"; skill=0.33333331; }; class Item4 { position[]={6400.5732,286.42047,7508.6299}; id=77; side="WEST"; vehicle="CDF_Soldier"; rank="CORPORAL"; skill=0.33333331; }; class Item5 { position[]={6402.5732,286.37781,7508.6299}; id=78; side="WEST"; vehicle="CDF_Soldier_MG"; rank="CORPORAL"; skill=0.33333331; }; class Item6 { position[]={6404.5732,286.33511,7508.6299}; id=79; side="WEST"; vehicle="CDF_Soldier_GL"; skill=0.2; }; class Item7 { position[]={6406.5732,286.29456,7508.6299}; id=80; side="WEST"; vehicle="CDF_Soldier_RPG"; skill=0.2; }; class Item8 { position[]={6408.5732,286.25455,7508.6299}; id=81; side="WEST"; vehicle="CDF_Soldier"; skill=0.2; }; class Item9 { position[]={6410.5732,286.21457,7508.6299}; id=82; side="WEST"; vehicle="CDF_Soldier_Medic"; skill=0.2; }; }; class Waypoints { items=2; class Item0 { position[]={7263.5664,294.23965,7672.0659}; formation="STAG COLUMN"; class Effects { }; showWP="NEVER"; }; class Item1 { position[]={8067.8447,346.91733,7069.8833}; speed="LIMITED"; class Effects { }; showWP="NEVER"; }; }; }; class Vehicles { items=1; class Item0 { position[]={7856.9468,375.88712,7619.7061}; azimut=155; id=87; side="EMPTY"; vehicle="UAZ_INS"; leader=1; skill=0.59999996; }; }; }; }; class Intro { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=15046750; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; }; }; class OutroWin { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=5006191; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; }; }; class OutroLoose { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=7214378; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; }; }; -
I killed my mission.sqm! Any formatting wizards?
twirly replied to maturin's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
This is what I think is the fixed version.... but there's no way to test. Worth a try mate! Download: mission.sqm EDIT: Ignore that! Won't work!! ... I did try to load the mission and got an erorr on line 1227 -
I killed my mission.sqm! Any formatting wizards?
twirly replied to maturin's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
What text editor are you using?..... I'm using TextPad and when I turn on "show spaces" I get strange characters showing up where tabs should be. The problem seemed to be right there (in red).... I took the shitty spaces out and pasted the code here. How that helps...I'm not sure. class Vehicles { items=1; class Item0 { position[]={7856.9468,375.88712,7619.7061}; azimut=155; id=87; side="EMPTY"; vehicle="UAZ_INS"; leader=1; skill=0.59999996; [color="Red"]};[/color] }; }; class Intro EDIT: Whatever you do remember to back up your existing file!!!!!!!!!!!!!!!!!!!!! -
All remaining enemy Chase player/team
twirly replied to snowmirage's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Here mate.... did two little demos for you. Tested and working. Done in Arma 2/OA In Demo 1 the trigger executes a script. In the triggers OnAct:- nul = [] execVM "chase.sqf"; chase.sqf:- while {true} do { { _grp = _x; if ((side _grp) == east) then { (leader _grp) move (position tank1); }; } forEach allGroups; sleep 5; }; In Demo 2 the trigger spawns the code. So the code is in the trigger. Code in OnAct:- nul = [] spawn {while {true} do {{_grp = _x;if ((side _grp) == east) then {(leader _grp) move (position tank1);}} forEach allGroups;sleep 5;}}; Hope they help you man. -
Any way to change a vehicle's actual displayed name ingame?
twirly replied to TouslyXid's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Maybe setVehicleVarName might be what you're after. Never used it myself so not a hundred percent sure of what mileage you will get. -
Running scripts from a trigger
twirly replied to iceman11a's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
It's just the nature of the beast mate. I've been doing this for many years and still look stuff up everyday. You are not going to get away from that. Yes... it can be extremely frustrating.... we've all been there and so understand your pain. Don't be too ambitious, start with baby steps and if you stick with it... you'll get there. Experiment in the editor and with code. Break your problem down.... maybe make a separate mission just to sort out your problem and then integrate that code into what you are working on. I don't think I have ever asked a question in these forums.... not once... and have found out everything I need to know by searching, reading and trying hard to understand. Learning how to use "if", "while" etc. is not hard if you examine other peoples code. It will take ten minutes of your time. Here again is a link to all the commands... I say again because this link is everywhere in these forums. Scripting Commands. Don't mean to be harsh.... but if you can't grasp the basics then maybe Arma 2 scripting is not for you. -
All remaining enemy Chase player/team
twirly replied to snowmirage's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I just noticed that this is true. It is missing! Went back and checked the demo I made and it's missing there too....but the script still ran fine. Go figure???!!!! -
All remaining enemy Chase player/team
twirly replied to snowmirage's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
The while loop works fine....just tested it. You don't have a space between while and {true}. Maybe that's the problem. -
Map or editor created locations as waypoints
twirly replied to katipo66's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
The trap has been sprung! LOL! -
Naming a spawmed group problem
twirly replied to f2k sel's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hahaha... I understand 100%. Take it easy Bro.