Search the Community
Showing results for tags 'Supply Drop'.
Found 5 results
-
randomposition Repeating random supply drop
rkemsley posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am trying to make a repeating script that spawns a cargo box randomly on the map (within my trigger area). The cargo box spawns with an "holdAction" attached and a map marker to show the location the cargo box has spawned at. Once the "holdAction" has been completed, the cargo box is removed, "CuratorPoints" are added to the side that secured the box and the map marker is also removed. My current script can spawn the cargo box, with the map marker, at the start of the game. However, I am unsure how to repeat the trigger, or have the cargo box removed once the "holdAction" has been completed. Later on, I would like it to be like a proper airdrop, but currently, I'd just like it just to actually appear on the map. Please help! -
help needed - Supply Drop on Smoke Grenade
Kelsey Allen posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello! I'm very new to scripting in Arma, or any form of code in general. I"m struggling to get this script to work. My current goal is to throw a green smoke grenade and have a helicopter spawn, fly to the smoke grenade position, drop a supply crate, and fly away. Any help would be amazing! Original script credits go to Tym Cooper's video on helicopter positon to smoke grenades - "https://www.youtube.com/watch?v=e_hOKoOfqfw" and Soolie's supply drop script - "https://forums.bohemia.net/forums/topic/177299-customizable-supply-drop-release/" Arma tells me my error is in this line of code (around line 44) places "lxl" before select 0 _supplyWP2 = _supplyGrp addWaypoint [[(_dropPos select 0)+_supplyRandomLocX, (_dropPos select 1)+_supplyRandomLocY, _dropPos select 2], 2]; HERE is the full script //script start _shooter = _this Select 0; _ammotype = _this Select 4; _dropPos = getpos player nearestObject "SmokeShellBlue"; _supplyBoxFnc = "b_supplycrate_f"; _supplyCargoFnc = { _supplyBoxFnc addWeaponCargoGlobal ["hgun_Pistol_Signal_F",3]; _supplyBoxFnc addMagazineCargoGlobal ["6Rnd_RedSignal_F", 10]; _supplyBoxFnc addWeaponCargoGlobal ["hgun_Pistol_heavy_01_snds_F",3]; _supplyBoxFnc addMagazineCargoGlobal ["11Rnd_45ACP_Mag", 10]; _supplyBoxFnc addWeaponCargoGlobal ["srifle_GM6_LRPS_F",3]; _supplyBoxFnc addMagazineCargoGlobal ["5Rnd_127x108_APDS_Mag", 10]; _supplyBoxFnc addItemCargoGlobal ["V_PlateCarrierGL_rgr", 10]; _supplyBoxFnc addItemCargoGlobal ["U_I_GhillieSuit", 10]; _supplyBoxFnc addBackpackCargoGlobal ["B_AssaultPack_ocamo", 10]; }; //hint format["%1",_ammotype]; sleep 2; switch (_ammotype) do { case "SmokeShellBlue": //add script below { //_supplyLocArray = [+1000,-1375,-1500,-1125,+1250,-1000,+1375,-1250,+1500,+1125]; _supplyLocArray = [+100,-100]; _supplyRandomLocX = _supplyLocArray select floor random count _supplyLocArray; _supplyRandomLocY = _supplyLocArray select floor random count _supplyLocArray; _supply = [[( _player select 0)+_supplyRandomLocX, ( _player select 1)+_supplyRandomLocY, ( _player select 2)+50], 180, "I_Heli_Transport_02_F", WEST] call bis_fnc_spawnvehicle; _supplyHeli = _supply select 0; _supplyHeliPos = getPos _supplyHeli; _supplyMrkrHeli = createMarker ["supplyMrkrHeli", _supplyHeliPos]; _supplyCrew = _supply select 1; _supplyGrp = _supply select 2; _supplyGrp setSpeedMode "FULL"; _supplyGrp setBehaviour "CARELESS"; _supplyWP1 =_supplyGrp addWaypoint [(_dropPos),1]; _supplyWP1 setWaypointType "MOVE"; _supplyWP2 = _supplyGrp addWaypoint [[(_dropPos select 0)+_supplyRandomLocX, (_dropPos select 1)+_supplyRandomLocY, _dropPos select 2], 2]; _supplyMrkrLZ = createMarker ["supplyMrkrLZ", _dropPos]; "supplyMrkrLZ" setMarkerType "Empty"; "supplyMrkrHeli" setMarkerType "Empty"; _supplyHeli flyInHeight 150; hint "The supplies are on the way"; _supplyMrkrHeliPos = getMarkerPos "supplyMrkrHeli"; _supplyMrkrHeliPos2 = [_supplyMrkrHeliPos select 0, _supplyMrkrHeliPos select 1, (_supplyMrkrHeliPos select 2)+50]; _supplyHeli = _supplyMrkrHeliPos2 nearestObject "I_Heli_Transport_02_F"; _supplyMrkrLZPos = getMarkerPos "supplyMrkrLZ"; _supplyLZ = createVehicle ["Land_Laptop_device_F", getMarkerPos "supplyMrkrLZ", [], 0, "NONE"]; deleteMarker "supplyMrkrHeli"; deleteMarker "supplyMrkrLZ"; _supplyLZ hideObject true; waitUntil {( _supplyLZ distance _supplyHeli)<400}; _supplyHeli animateDoor ["CargoRamp_Open",1]; waitUntil {( _supplyLZ distance _supplyHeli)<200}; sleep 2; _supplyHeli allowDammage false; _supplyBox = createVehicle [_supplyBoxFnc, position _supplyHeli, [], 0, "CAN_COLLIDE"]; clearBackpackCargoGlobal _supplyBox; clearWeaponCargoGlobal _supplyBox; clearMagazineCargoGlobal _supplyBox; clearItemCargoGlobal _supplyBox; _supplyBox disableCollisionWith _supplyHeli; _supplyHeli disableCollisionWith _supplyBox; _supplyBox allowDammage false; _supplyBox attachTo [_supplyHeli, [0, 0, 0], "CargoRamp"]; _supplyBox setDir ([_supplyBox, _supplyHeli] call BIS_fnc_dirTo); detach _supplyBox; deleteVehicle _supplyLZ; //concerned area [_supplyBox,_supplyCargoFnc,nil,true] call BIS_fnc_MP; [_supplyBox,"FncSupplyLight",nil,true] call BIS_fnc_MP; //concerned area _supplyChute = createVehicle ["B_parachute_02_F", position _supplyBox, [], 0, "CAN_COLLIDE"]; _supplyBox attachTo [_supplyChute,[0,0,-0.5]]; _supplyChute hideObject true; _supplyChute setPos getPos _supplyBox; _supplyLight = "Chemlight_green" createVehicle (position _supplyBox); _supplyLight attachTo [_supplyBox, [0,0,0]]; sleep 1; hint "The supplies have been dropped"; _supplyChute hideObject false; _supplyHeli allowDammage true; _supplyBox allowDammage true; _supplyHeli animateDoor ["CargoRamp_Open",0]; //:::::::::::|SMOKE|::::::::::: _supplySmoke = "SmokeShell" createVehicle (position _supplyBox); _supplySmoke attachTo [_supplyBox, [0,0,0]]; //::::::::::::::::::::::::::::: waitUntil {(getPos _supplyBox select 2)<2}; detach _supplyBox; _supplyChute setPos [ (getPos _supplyChute select 0)+0.75, getPos _supplyChute select 1, getPos _supplyChute select 2]; hint ""; sleep 5; {deleteVehicle _x;}forEach crew _supplyHeli;deleteVehicle _supplyHeli; }; case "1Rnd_SmokeGreen_Grenade_shell": { Hint "Green SmokeShell Detected"; }; case "FlareGreen_F": { Hint "Green Flare Detected"; }; case "3Rnd_SmokeGreen_Grenade_shell": { Hint "Green SmokeShell Detected"; }; case "UGL_FlareGreen_F": { Hint "Green Flare Detected"; }; case "3Rnd_UGL_FlareGreen_F": { Hint "Green Flare Detected"; }; }; //script end used for players unit init player addEventHandler ["fired",{_this execvm "supply_smoke.sqf"}]- 11 replies
-
- supply drop
- smoke grenade
-
(and 1 more)
Tagged with:
-
This script/FSM gives the functionality for resupply drop in MP/SP scenario. Created because the bis support resupply drop is not working in MP currently. This is similar to support virtual resupply drop module, gives the possibility to select aircraft types, box types and its init by editing the support\supplydrop.sqf //*************************** editable **************************// private _heliclass = selectRandom [ "B_Heli_Transport_03_F", "B_Heli_Transport_01_F", "B_Heli_Transport_01_camo_F", "B_Heli_Transport_03_unarmed_F", "B_T_VTOL_01_vehicle_F" ]; private _boxclass = selectRandom [ "B_supplyCrate_F", "Box_NATO_AmmoVeh_F", "B_CargoNet_01_ammo_F" ]; private _chuteType = "B_Parachute_02_F"; private _boxCode = compile "null = [_this] spawn fnc_dropboxinit;"; private _helistart = "helistartpos";// marker where the heli spawns or position array [posX,posY,posZ] //*************************** editable **************************// Usage: Edit the above to fit your needs. For helicopter spawn position create a marker somewhere on the map in editor or use position array. Set it for _helistart variable value. Copy paste all files (besides mission.sqm) from example mission to your mission or if your mission contains those files merge the files content. Check init.sqf for this part. //if you want to limit support to certain units add its classnames to the aray below //last entry without comma at the end //uncomment "All" if you want it for all players private _givesupport = [ //"All", "B_Soldier_SL_F", "B_Soldier_TL_F" ]; Edit/add your desired class names which players will have the drop menu available or Un-comment "All" for all players. Edit support\dropbox.sqf as you want. Currently only arsenal,smoke,and IR added. Put an Headquarters entity module (found in systems > Intel ) with: VARIABLE NAME - hq_suppcomm SIDE - select player side CALLISGN - NATO CUSTOM CALLISGN - your custom callisgn (will be displayed with radio sentences) SPEAKER - not important That guy will handle the radio communications for you. Download: GoogleDrive V1.3
-
So I've been working on making a custom combat patrol for my group and it's been going well so far however I've run into a bit of an issue and minor annoyance. I've got a couple of the support providers down but one of them, the supply drop, is giving me a bit of an issue. I can call the support just fine and it'll drop the crate, however instead of becoming an arsenal like I want, it's just staying a regular NATO supply crate. The script I'm putting in the init is: _this addAction ["Open Virtual Arsenal", {["Open",true] spawn BIS_fnc_arsenal}]; Am I doing something stupid or is the supply drop module broken?
- 15 replies
-
- combat support
- supply drop
-
(and 1 more)
Tagged with:
-
Trigger Supply Drop with a Smoke Grenade
SeeRocky posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi guys I'm currently working on a mission, based on the "hunger games" model. Appart from normal loot, i want to enable supply drops, wich can be activated by throwing a red smoke grenade. I fond a script wich activates a heli extraction by throwing smoke, but i am not able to rewrite the sript for a supply drop. This is the script i found for the heli extraction: I also found this script, wich enables a supply crate drop without the module: Can anybody help me to bring these two scripts together? Would be very kind :)- 5 replies
-
- Smoke Grenade
- Supply Drop
-
(and 1 more)
Tagged with: