allen bashaw
New Member
Hey guys. I'm having an issue with the side missions my server is running. I don't know who made it, but I hope it's not too different from what you're used to.
All of the other missions are working perfectly, all but this C-130 medical crash in Novy. The mission itself seems to glitch to where Humvees/UAZ's are clipped inside of walls and buildings. Sometimes the AI at the mission are all dead inside a wall.
We can get to the crate with the supplies, however the mission never comes up with the "completed" text.
I'm hoping I can fix it by just moving it north a little into a field. The problem I have is that I do not know how to change the coords of the mission. Here is the "broken" mission file...
Any info you can provide may help.
Thanks.
All of the other missions are working perfectly, all but this C-130 medical crash in Novy. The mission itself seems to glitch to where Humvees/UAZ's are clipped inside of walls and buildings. Sometimes the AI at the mission are all dead inside a wall.
We can get to the crate with the supplies, however the mission never comes up with the "completed" text.
I'm hoping I can fix it by just moving it north a little into a field. The problem I have is that I do not know how to change the coords of the mission. Here is the "broken" mission file...
Code:
//Medical C-130 Crash by lazyink (Full credit for original code to TheSzerdi & TAW_Tonic)
private ["_coords","_MainMarker","_wait"];
[] execVM "\z\addons\dayz_server\Missions\SMGoMajor.sqf";
WaitUntil {MissionGo == 1};
_coords = [getMarkerPos "center",0,5600,100,0,20,0] call BIS_fnc_findSafePos;
[nil,nil,rTitleText,"A C-130 carrying medical and building supplies has crashed and bandits are securing the site! Check your map for the location!", "PLAIN",10] call RE;
Ccoords = _coords;
publicVariable "Ccoords";
[] execVM "debug\addmarkers.sqf";
_c130wreck = createVehicle ["C130J_wreck_EP1",[(_coords select 0) + 30, (_coords select 1) - 5,0],[], 0, "NONE"];
_hummer = createVehicle ["HMMWV_DZ",[(_coords select 0) - 20, (_coords select 1) - 5,0],[], 0, "CAN_COLLIDE"];
_hummer1 = createVehicle ["UAZ_Unarmed_UN_EP1",[(_coords select 0) - 30, (_coords select 1) - 10,0],[], 0, "CAN_COLLIDE"];
_hummer2 = createVehicle ["SUV_DZ",[(_coords select 0) + 10, (_coords select 1) + 5,0],[], 0, "CAN_COLLIDE"];
_c130wreck setVariable ["Sarge",1,true];
_hummer setVariable ["Sarge",1,true];
_hummer1 setVariable ["Sarge",1,true];
_hummer2 setVariable ["Sarge",1,true];
_crate = createVehicle ["USVehicleBox",[(_coords select 0) - 10, _coords select 1,0],[], 0, "CAN_COLLIDE"];
[_crate] execVM "\z\addons\dayz_server\missions\misc\fillBoxesM.sqf";
_crate setVariable ["Sarge",1,true];
_crate2 = createVehicle ["USLaunchersBox",[(_coords select 0) - 6, _coords select 1,0],[], 0, "CAN_COLLIDE"];
[_crate2] execVM "\z\addons\dayz_server\missions\misc\fillBoxesS.sqf";
_crate2 setVariable ["Sarge",1,true];
_aispawn = [[(_coords select 0) + 20, _coords select 1,0],80,6,6,1] execVM "\z\addons\dayz_server\missions\add_unit_server.sqf";//AI Guards
sleep 5;
_aispawn = [[(_coords select 0) + 30, _coords select 1,0],80,6,6,1] execVM "\z\addons\dayz_server\missions\add_unit_server.sqf";//AI Guards
sleep 5;
_aispawn = [[(_coords select 0) + 20, _coords select 1,0],40,4,4,1] execVM "\z\addons\dayz_server\missions\add_unit_server.sqf";//AI Guards
sleep 5;
_aispawn = [[(_coords select 0) + 30, _coords select 1,0],40,4,4,1] execVM "\z\addons\dayz_server\missions\add_unit_server.sqf";//AI Guards
waitUntil{{isPlayer _x && _x distance _c130wreck < 5 } count playableunits > 0};
[] execVM "debug\remmarkers.sqf";
MissionGo = 0;
Ccoords = 0;
publicVariable "Ccoords";
[nil,nil,rTitleText,"The crash site has been secured by survivors!", "PLAIN",6] call RE;
SM1 = 1;
[0] execVM "\z\addons\dayz_server\missions\major\SMfinder.sqf";
Any info you can provide may help.
Thanks.