Hi everyone,
Ive got a problem with a supply drop script i use and have been using for quite awhile.
Since Operation Arrowhead it doesent seem to work anymore, and my scripting skills are still very limited as im still learning. So i thought i would post it here to see if someone, can tell me what has changed in Operation Arrowhead in regards to this script no longer working._droppoint = "dropzone";
_dropzone = createMarkerLocal ["dropzone", [0,0,0]];
_dropzone setMarkerShapeLocal "ICON";
"dropzone" setMarkerTypeLocal "Destroy";
"dropzone" setMarkerText "Ammo Dropzone";
"dropzone" setMarkerColor "ColorRed";
mapclick = true;
hint "Click on the map to designate a dropzone.";
onMapSingleClick "'dropzone' setMarkerPosLocal _pos,mapclick = false";
waitUntil{!mapclick};
onMapSingleClick "";
waitUntil{!visibleMap};
amo = true;
_pos = getmarkerpos "dropzone";
spawntype0 = "USSpecialWeaponsBox";
spawntype1 = "USVehicleBox";
spawntype2 = "USSpecialWeaponsBox";
_dir = 90;
_airtype = "C130J";
_type = "GUE_Soldier_Pilot";
mygroup = creategroup side player;
_target = createVehicle ["testsphere2",[_pos select 0,_pos select 1,-10], [], 0, "FLY"];
_target setpos [_pos select 0,_pos select 1,200];
_target setDir _dir;
_vdir = vectorDir _target;
_target setpos [(_pos select 0) + (_vdir select 0) * 26, (_pos select 1) + (_vdir select 1) * 26,200];
_apos = getposasl _target;
_npos = [(_pos select 0) + (_vdir select 0) * -1500, (_pos select 1) + (_vdir select 1) * -1500, 300];
_vehicle = createVehicle [_airtype,_npos, [], 0, "FLY"];
_vehicle setpos _npos;
_vehicle setDir _dir;
_vehicle setvelocity [(_vdir select 0)*50,(_vdir select 1)*50, 5];
_type createUnit [_npos, mygroup,"pilot=this;"];
_pilot = pilot;
_pilot moveindriver _vehicle;
_pilot reveal _target;
_pilot doMove _npos;
_pilot dotarget _target;
_pilot dowatch _target;
_pilot FlyInHeight 400;
_vehicle FlyInHeight 400;
while {_vehicle distance _target > 40} do
{
sleep 0.1;
if(_vehicle distance _target < 600) then
{
_pilot FlyInHeight 100;
_pilot doMove _npos;
};
};
_bpos = _vehicle ModelToWorld [0,-12,-5.5];
_bomb = spawntype0 createVehicle _bpos;
_bomb setpos _bpos;
_bomb setDir direction _vehicle;
_chute = "ParachuteMediumWest" createVehicle getpos _bomb;
_chute setpos (_bomb ModelToWorld [0,0,3]);
_bomb attachTo [_chute,[0,0,2.5]];
sleep 0.2;
_bpos = _vehicle ModelToWorld [0,-12,-5.5];
_bomb = spawntype1 createVehicle _bpos;
_bomb setpos _bpos;
_bomb setDir direction _vehicle;
_chute = "ParachuteMediumWest" createVehicle getpos _bomb;
_chute setpos (_bomb ModelToWorld [0,0,3]);
_bomb attachTo [_chute,[0,0,2.8]];
sleep 0.2;
_bpos = _vehicle ModelToWorld [0,-12,-5.5];
_bomb = spawntype2 createVehicle _bpos;
_bomb setpos _bpos;
_bomb setDir direction _vehicle;
_chute = "ParachuteMediumWest" createVehicle getpos _bomb;
_chute setpos (_bomb ModelToWorld [0,0,3]);
_bomb attachTo [_chute,[0,0,2.4]];
deletevehicle _target;
sleep 0.05;
_plane FlyInHeight 250;
sleep 1;
_plane FlyInHeight 450;
_pilot doMove [(_pos select 0) + (_vdir select 0) * 800, (_pos select 1) + (_vdir select 1) * 800, 500];
sleep 15;
amo = false;
deletevehicle _vehicle;
deletevehicle _pilot;
deletemarker "dropzone";
Whats happening is that everything works as it should, except now the C130J wont drop its cargo, it just flys over the droppoint and nothing.
Sorry if this code is too long, i wasnt sure how much of a script can be posted.
Ive also posted on the BIS forum but havent got any help as yet.
So im hopeing someone here might have the solution.
Anyway any help would be greatly appreciated.