Jump to content

xjauntyx

Member
  • Content Count

    7
  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

10 Good

About xjauntyx

  • Rank
    Rookie
  1. xjauntyx

    Roadside IED Script

    Ok I've found the problem! Yesterday I experienced exactly the same problem. No action about disarm the explosive was in my menu when I approached the IED it was directly "kaaboom!" You'll be able to disarm it only when you are proned otherwise you'll trigger the IED. The only problem what I encounter right now is that the IED's are marked on the map thats not really funny hopefully someone can tip me how to hide the IED's from visibilty on the map.
  2. xjauntyx

    Roadside IED Script

    I love you! :D I saw no quote marks in the readme file so basicly what I did was only filled in the name of my center point like this _variable didn't knew you needed to remove the underscore and add quote marks! :) Thank you for pointing out my problem its working now. ---------- Post added at 14:16 ---------- Previous post was at 13:47 ---------- I experience exactly the same... Plus the map shows where the IED's are located kinda weird. http://img202.imageshack.us/img202/7050/w68z.jpg (929 kB)
  3. xjauntyx

    Roadside IED Script

    What I'm doing wrong can't get this script working :confused: http://img571.imageshack.us/img571/5906/ochh.jpg (344 kB) Init.sqf null = ["center", 12,500,"West", 1] execVM "IED\ied.sqf"; iedcounter = 0; Disarm = { _unit = _this select 0; _b = _this select 1; _unit addAction ["Disarm", "IED\Disarm.sqf", ( _b), 0, false, true, "", "(_target distance _this) < 3"]; }; removeAct = { _unit = _this select 0; _unit removeaction 0; }; waitUntil {time > 0}; execVM "EtV.sqf"; waitUntil {!isNil "EtVInitialized"}; [player] call EtV_Actions; execVM "grenadeStop.sqf"; execVM "briefing.sqf"; execVM "EtV.sqf"; setViewDistance 2500; enableRadio false; [] Spawn { waitUntil{!(isNil "BIS_fnc_init")}; "Alpha1" setMarkerAlpha 0; ied.sqf // |--------------------------------------------| // | Dynamic IED script by - Mantis and MAD_T - | // | Version 2c - 12.6.2013 | // | Check out TACO at www.nss-gamers.com | // |--------------------------------------------| // USAGE: // 1. Create a Marker called "Center" somewhere on Map // 2. Set Parameters in script. // 3. Call it however you want (Init, trigger, addaction, etc...) // // // NOTE: The more Roads in an area the higher the probability of IEDs spawning there. //null = ["markername", amount, distance,side, cleanup(0 or 1)] execVM "IED\ied.sqf"; if (!isserver) exitwith {}; _centermrk = _this select 0; _center = getmarkerpos _center; // Your Centerpoint _counter = 0; _amount = _this select 1; // Amount of IEDS on Map _dist = _this select 2; _check = _this select 4; _side = _this select 3; if (_check == 1) then { while {_counter < _amount} do { _force = random 100; _rdist = 5.75; _list = _center nearRoads _dist; _iedarray =["Land_GarbagePallet_F","Land_CanisterFuel_F","Land_GarbageWashingMachine_F","Land_JunkPile_F","Land_CanisterPlastic_F","Land_Tyres_F","Land_GarbageBags_F","Land_Wreck_Truck_F"]; // Objects used as IEDs _iedtype = _iedarray select (floor random (count _iedarray)); _road = _list select (round random (count _list)); _roadDir = getDir _road; _chance = random 100; _newDir = _roadDir; if (_chance < 50) then {_newDir = (_NewDir + 180)}; _dir = _newdir; _pos = getpos _road; _posx = _pos select 0; _posy = _pos select 1; _tx = (_posx + (_rdist * sin(_dir))); _ty = (_posy + (_rdist * cos(_dir))); _iedpos = [_tx,_ty,0]; Call compile format [' ied_%1 = _iedtype createVehicle _iedpos; ied_%1 setDir (random 360); ied_%1 enableSimulation false;', iedcounter]; _junktype = _iedarray select (floor random (count _iedarray)); _road2 = _list select (round random (count _list)); while { _road2 == _road} do { _road2 = _list select (round random (count _list)); }; _pos = getpos _road2; _posx2 = _pos select 0; _posy2 = _pos select 1; _tx2 = (_posx2 + (_rdist * sin(_dir))); _ty2 = (_posy2 + (_rdist * cos(_dir))); _junkpos = [_tx2,_ty2,0]; _junk = _junktype createVehicle _junkpos; _junk setdir (random 360); if (_force >= 0 && _force < 33) then { call compile format [' t_%1 = createTrigger ["EmptyDetector", _iedpos]; t_%1 setTriggerArea [8,8,0,true]; t_%1 setTriggerActivation [_side,"PRESENT",false]; t_%1 setTriggerStatements ["this && {speed _x >= 4.8} foreach thislist && {((position _x) select 2) < 3} foreach thislist && (alive ied_%1)","""M_Mo_82mm_AT_LG"" createVehicle %2;""M_Mo_82mm_AT_LG"" createVehicle %2; deletevehicle ied_%1",""]; ', iedcounter, _iedpos]; }; if (_force >= 33 && _force < 70) then { call compile format [' t_%1 = createTrigger ["EmptyDetector", _iedpos]; t_%1 setTriggerArea [8,8,0,true]; t_%1 setTriggerActivation [_side,"PRESENT",false]; t_%1 setTriggerStatements ["this && {speed _x >= 4.8} foreach thislist && {((position _x) select 2) < 3} foreach thislist && (alive ied_%1)","""M_Mo_82mm_AT_LG"" createVehicle %2;""M_Mo_82mm_AT_LG"" createVehicle %2;""M_Mo_82mm_AT_LG"" createVehicle %2; deletevehicle ied_%1",""]; ', iedcounter, _iedpos]; }; if (_force >= 70 && _force <= 100) then { call compile format [' t_%1 = createTrigger ["EmptyDetector", _iedpos]; t_%1 setTriggerArea [8,8,0,true]; t_%1 setTriggerActivation [_side,"PRESENT",false]; t_%1 setTriggerStatements ["this && {speed _x >= 4.8} foreach thislist && {((position _x) select 2) < 3} foreach thislist && (alive ied_%1)","""M_Mo_82mm_AT_LG"" createVehicle %2;""M_Mo_82mm_AT_LG"" createVehicle %2;""M_Mo_82mm_AT_LG"" createVehicle %2;""M_Mo_82mm_AT_LG"" createVehicle %2;""M_Mo_82mm_AT_LG"" createVehicle %2;""M_Mo_82mm_AT_LG"" createVehicle %2; deletevehicle ied_%1",""]; ', iedcounter, _iedpos]; }; call compile format [' [[ied_%1, t_%1],"Disarm", true, true] spawn BIS_fnc_MP; [[ied_%1, t_%1],"explosive", true, true] spawn BIS_fnc_MP;', iedcounter]; call compile format [' // DEBUG! comment out for full Mission bombmarker_%1 = createmarker ["bombmarker_%1", _iedpos]; "bombmarker_%1" setMarkerTypeLocal "hd_warning"; "bombmarker_%1" setMarkerColorLocal "ColorRed"; "bombmarker_%1" setMarkerTextLocal "bomb";', iedcounter]; _counter = _counter + 1; iedcounter = iedcounter + 1; }; }; if (_check == 0) then { _counter = -1; while {iedcounter != _counter} do { call compile format [' deletevehicle t_%1; deletevehicle ied_%1; deletemarker "bombmarker_%1";', iedcounter]; iedcounter = iedcounter - 1; }; _counter = 0; iedcounter = 0; }; When the mission starts I receive errors. http://img51.imageshack.us/img51/9830/zvvx.jpg (451 kB) Can you please explain to me what I'm doing wrong I want to learn how you can setup this properly. regards, xjauntyx
  4. xjauntyx

    RH Pistol pack

    Thank you for this awesome weapon pack I really like it :)
×