I was wondering if anyone knew of a way to make a specific mission call for the static array or just a fixed location while the rest remain random. I ask because i have customized a C130 mission to be secured and sold or whatever the player desires to do with it. But if is spawning in random locations takeoff probability its minimal. If not can i change and what do i need to change in the files to rename a second DZMS folder to work alone as a separate mission system and not cause problems between the 2?
In case its needed or if someone just wants to use it -
/*
Bandit C130 Preparation by oSoDirty credit to lazyink for template i used (Full credit for original code to TheSzerdi & TAW_Tonic)
New Mission Format by Vampire
*/
private ["_missName","_coords","_ranChopper","_chopper","_truck","_trash","_trash2","_crate","_crate2"];
//Name of the Mission
_missName = "C130";
//DZMSFindPos loops BIS_fnc_findSafePos until it gets a valid result
_coords = call DZMSFindPos;
[nil,nil,rTitleText,"Bandits are preparing a C130 for take off Take them out and its yours!", "PLAIN",10] call RE;
//DZMSAddMajMarker is a simple script that adds a marker to the location
[_coords,_missname] ExecVM DZMSAddMajMarker;
_truck = createVehicle ["C130J_US_EP1",[(_coords select 0) - 8.7802,(_coords select 1) + 6.874,0],[], 0, "CAN_COLLIDE"];
[_truck] call DZMSSetupVehicle;
//DZMSAISpawn spawns AI to the mission.
//Usage: [_coords, count, skillLevel, unitArray]
[[(_coords select 0) - 8.4614,(_coords select 1) - 5.0527,0],5,1,"DZMSUnitsMajor"] call DZMSAISpawn;
sleep 5;
[[(_coords select 0) - 8.4614,(_coords select 1) - 5.0527,0],5,1,"DZMSUnitsMajor"] call DZMSAISpawn;
sleep 5;
//Wait until the player is within 30 meters and also meets the kill req
[_coords,"DZMSUnitsMajor"] call DZMSWaitMissionComp;
//Call DZMSSaveVeh to attempt to save the vehicles to the database
//If saving is off, the script will exit.
[_chopper] ExecVM DZMSSaveVeh;
[_truck] ExecVM DZMSSaveVeh;
//Let everyone know the mission is over
[nil,nil,rTitleText,"The C130 has been Taken by Survivors!", "PLAIN",6] call RE;
diag_log text format["[DZMS]: Major SM4 Helicopter Landing Mission has Ended."];
deleteMarker "DZMSMajMarker";
deleteMarker "DZMSMajDot";
//Let the timer know the mission is over
DZMSMajDone = true;
Question
oSoDirty
I was wondering if anyone knew of a way to make a specific mission call for the static array or just a fixed location while the rest remain random. I ask because i have customized a C130 mission to be secured and sold or whatever the player desires to do with it. But if is spawning in random locations takeoff probability its minimal. If not can i change and what do i need to change in the files to rename a second DZMS folder to work alone as a separate mission system and not cause problems between the 2?
In case its needed or if someone just wants to use it -
ANY help would be greatly appreciated!!!
Link to comment
Share on other sites
10 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