jay8454 Posted April 5, 2014 Report Share Posted April 5, 2014 WAI Help mayors mansion Not showing up when starting. This mission will not show up on the player map nor will it show a message indicating where it is. All the other missions work spot on so this one I am stumped on. Any help I thank you greatly. //Mayors Mansion Mission private ["_position","_box","_missiontimeout","_cleanmission","_playerPresent","_starttime","_currenttime","_cleanunits","_rndnum"]; vehclass = military_unarmed call BIS_fnc_selectRandom; _position = [getMarkerPos "center",0,5500,10,0,2000,0] call BIS_fnc_findSafePos; //Extra Large Gun Box _box = createVehicle ["USVehicleBox",[(_position select 0),(_position select 1), .5], [], 0, "CAN_COLLIDE"]; [_box] call Extra_Large_Gun_Box; //Currency Box _box = createVehicle ["USOrdnanceBox",[(_position select 0) - 2,(_position select 1), .5], [], 0, "CAN_COLLIDE"]; [_box] call Currency_Box; //Currency Box _box = createVehicle ["USOrdnanceBox",[(_position select 0) + 2,(_position select 1), .5], [], 0, "CAN_COLLIDE"]; [_box] call Currency_Box; diag_log format["WAI: Mission Mayors Mansion Started At %1",_position]; //Mayors Mansion _baserunover = createVehicle ["Land_A_Villa_EP1",[(_position select 0), (_position select 1),0],[], 0, "CAN_COLLIDE"]; _rndnum = round (random 3) + 4; [[_position select 0, _position select 1, 0],5,1,"Random",5,"","TK_INS_Soldier_AT_EP1","Random",true] call spawn_group; [[_position select 0, _position select 1, 0],5,1,"Random",5,"","TK_INS_Soldier_AT_EP1","Random",true] call spawn_group; [[_position select 0, _position select 1, 0],5,1,"Random",5,"","TK_INS_Soldier_AT_EP1","Random",true] call spawn_group; [[_position select 0, _position select 1, 0],5,1,"Random",5,"","TK_INS_Soldier_AT_EP1","Random",true] call spawn_group; [[_position select 0, _position select 1, 0],5,1,"Random",5,"","TK_INS_Soldier_AT_EP1","Random",true] call spawn_group; //The Mayor Himself [[_position select 0, _position select 1, 0],1,1,"Random",4,"","Functionary1_EP1_DZ","Random",true] call spawn_group; //Turrets [[[(_position select 0) - 15, (_position select 1) + 15, 8]],"M2StaticMG",0.9,"TK_INS_Soldier_AT_EP1",1,4,"","Random",true] call spawn_static; [[[(_position select 0) + 15, (_position select 1) - 15, 8]],"Stinger_Pod_US_EP1,"TK_INS_Soldier_AT_EP1",1,4,"","Random",true] call spawn_static; [[[(_position select 0) - 25, (_position select 1) + 25, 0]],"Tow_TriPod_US_EP1",0.9,"TK_INS_Soldier_AT_EP1",1,4,"","Random",true] call spawn_static; [[[(_position select 0) + 25, (_position select 1) - 25, 0]],"Tow_TriPod_US_EP1",0.9,"TK_INS_Soldier_AT_EP1",1,4,"","Random",true] call spawn_static; [_position,"Mayors Mansion"] execVM "\z\addons\dayz_server\WAI\missions\compile\markers.sqf"; [nil,nil,rTitleText,"The Mayor has gone rogue, go take him and his task force out to claim the weapons and currency!", "PLAIN",10] call RE; _missiontimeout = true; _cleanmission = false; _playerPresent = false; _starttime = floor(time); while {_missiontimeout} do { sleep 5; _currenttime = floor(time); {if((isPlayer _x) AND (_x distance _position <= 150)) then {_playerPresent = true};}forEach playableUnits; if (_currenttime - _starttime >= wai_mission_timeout) then {_cleanmission = true;}; if ((_playerPresent) OR (_cleanmission)) then {_missiontimeout = false;}; }; if (_playerPresent) then { waitUntil { sleep 5; _playerPresent = false; {if((isPlayer _x) AND (_x distance _position <= 20)) then {_playerPresent = true};}forEach playableUnits; (_playerPresent) }; diag_log format["WAI: Mission Mayors Mansion Ended At %1",_position]; [nil,nil,rTitleText,"The rogue mayor has been taken out, who will be the next Mayor of Cherno?", "PLAIN",10] call RE; } else { clean_running_mission = True; deleteVehicle _box; {_cleanunits = _x getVariable "missionclean"; if (!isNil "_cleanunits") then { switch (_cleanunits) do { case "ground" : {ai_ground_units = (ai_ground_units -1);}; case "air" : {ai_air_units = (ai_air_units -1);}; case "vehicle" : {ai_vehicle_units = (ai_vehicle_units -1);}; case "static" : {ai_emplacement_units = (ai_emplacement_units -1);}; }; deleteVehicle _x; sleep 0.05; }; } forEach allUnits; diag_log format["WAI: Mission Mayors Mansion At %1",_position]; [nil,nil,rTitleText,"The survivors were unable to capture the Mansion time is up!", "PLAIN",10] call RE; }; missionrunning = false; Link to comment Share on other sites More sharing options...
0 AOD_Assassin Posted April 5, 2014 Report Share Posted April 5, 2014 In your missions folder you should have a debug folder. Make sure that's set up properly. Link to comment Share on other sites More sharing options...
0 jay8454 Posted April 6, 2014 Author Report Share Posted April 6, 2014 So I found the Missions/ Debug they all look like this.... addmarkers.sqf _MainMarker = createMarker ["_MainMarker", Ccoords]; _MainMarker setMarkerColor "ColorRed"; _MainMarker setMarkerShape "ELLIPSE"; _MainMarker setMarkerBrush "Solid"; _MainMarker setMarkerSize [250,250]; addmarkers75.sqf _MainMarker75 = createMarker["_MainMarker75", MCoords]; _MainMarker75 setMarkerColor "ColorGreen"; _MainMarker75 setMarkerShape "ELLIPSE"; _MainMarker75 setMarkerBrush "Solid"; _MainMarker75 setMarkerSize [250,250]; remmarkers.sqf deleteMarker "_MainMarker"; remmarkers75.sqf deleteMarker "_MainMarker75"; Am I missing the _ on the last 2? Thank you for the reply. Link to comment Share on other sites More sharing options...
0 jay8454 Posted April 9, 2014 Author Report Share Posted April 9, 2014 Anyone else have any suggestions on this? Thank you Link to comment Share on other sites More sharing options...
0 Ethan_296 Posted May 27, 2014 Report Share Posted May 27, 2014 Has this bern resolved? Link to comment Share on other sites More sharing options...
0 KamikazeXeX Posted June 26, 2014 Report Share Posted June 26, 2014 Do you or does anyone have the main thread for this? i've seen it all over servers but i've never found a thread for it. Link to comment Share on other sites More sharing options...
0 Richie Posted June 26, 2014 Report Share Posted June 26, 2014 Do you or does anyone have the main thread for this? i've seen it all over servers but i've never found a thread for it. I belive is the latest WAI thread. Link to comment Share on other sites More sharing options...
Question
jay8454
WAI Help mayors mansion Not showing up when starting.
This mission will not show up on the player map nor will it show a message indicating where it is.
All the other missions work spot on so this one I am stumped on.
Any help I thank you greatly.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now