Jump to content
JasonTM

[RELEASE] WAI 2.2.5

Recommended Posts

Thanks for all the help, got it all working just fine.

Only thing I want to know now is which file I can use to edit/configure the mission markers because its somewhat confusing to find out which missions have bandits at them, and which have heroes. I basically just want to change the colors of the mission markers to red (bandits) and green (heroes) only.

Share this post


Link to post
Share on other sites
8 hours ago, WeepiestLem0n said:

Thanks for all the help, got it all working just fine.

Only thing I want to know now is which file I can use to edit/configure the mission markers because its somewhat confusing to find out which missions have bandits at them, and which have heroes. I basically just want to change the colors of the mission markers to red (bandits) and green (heroes) only.

IT'S in the wai config file in wai folder you will see what i mean

 

Share this post


Link to post
Share on other sites

Still unable to find how to edit the map markers :/

I can only find the line which I guess shows the bandit and hero markers, but I cannot find where to edit them:

wai_mission_markers        = ["DZMSMajMarker","DZMSMinMarker","DZMSBMajMarker","DZMSBMinMarker"]; // List of DZMS mission markers to check

Share this post


Link to post
Share on other sites
On 2/2/2019 at 12:43 AM, WeepiestLem0n said:

Thanks for all the help, got it all working just fine.

Only thing I want to know now is which file I can use to edit/configure the mission markers because its somewhat confusing to find out which missions have bandits at them, and which have heroes. I basically just want to change the colors of the mission markers to red (bandits) and green (heroes) only.

The mission marker colors are based on mission difficulty. If you want to change to AI type (Hero and Bandit), then change this block of code:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L22-L27

To this:

_color = call {
	if(_missionType == "MainHero") exitWith {"ColorRed"};
	if(_missionType == "MainBandit") exitWith {"ColorGreen"};
};

Also change these:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/airdrop_winorfail.sqf#L26-L31

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/patrol_winorfail.sqf#L20-L25

Share this post


Link to post
Share on other sites
1 hour ago, JasonTM said:

The mission marker colors are based on mission difficulty. If you want to change to AI type (Hero and Bandit), then change this block of code:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L22-L27

To this:

_color = call {
	if(_missionType == "MainHero") exitWith {"ColorRed"};
	if(_missionType == "MainBandit") exitWith {"ColorGreen"};
};

Also change these:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/airdrop_winorfail.sqf#L26-L31

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/patrol_winorfail.sqf#L20-L25

Thanks! got it sorted :)

Share this post


Link to post
Share on other sites

Error in expression <sion_text != "") exitWith {};
} forEach WAI_Missions_Array_Notify;
if (_mission_>
  Error position: <WAI_Missions_Array_Notify;
if (_mission_>
   Error Undefined variable in expression: wai_missions_array_notify
   File z\addons\dayz_server\WAI\missions\init.sqf, line 103

Share this post


Link to post
Share on other sites
3 hours ago, Gromillla said:

Error in expression <sion_text != "") exitWith {};
} forEach WAI_Missions_Array_Notify;
if (_mission_>
  Error position: <WAI_Missions_Array_Notify;
if (_mission_>
   Error Undefined variable in expression: wai_missions_array_notify
   File z\addons\dayz_server\WAI\missions\init.sqf, line 103

This code does not exist in WAI. That file only has 79 lines.

Share this post


Link to post
Share on other sites

Hi all !

How can I make the boat run between two waypoints?

In custom mission:

//Uncomment this section for Skalisty Island Boat Patrols
[
	[13450.0,3610.00,0],			// Position to patrol
	[12900.0,3160.00,0],			// Position to spawn at, can be same as patrol location
	100,							// Radius of patrol
	2,								// Number of waypoints to give
	"RHIB",							// Classname of armed boat (make sure it has driver and gunner)
	"Random",						// Skill level of units (easy, medium, hard, extreme, Random)
	"Random",						// Skin classname, use "Random" or classname here
	"Bandit"						// AI Type, "Hero" or "Bandit".
] call vehicle_patrol;

The boat moves to the second point and patrols around it. I want it to move back to the first, then again to the second, etc.

Share this post


Link to post
Share on other sites

hello i have installed this it works great the only problem i have is that i created a static mission using the example file and looked at the previous comments on this forum but am getting an error i cant seem to fix was wondering if anyone can help

error

12:14:25 "WAI: AI Config File Loaded"
12:14:25 "WAI: Overpoch Config File Loaded"
12:14:25 Error in expression <5],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error position: <Vehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error Missing ;
12:14:25 File z\addons\dayz_server\WAI\static\default.sqf, line 399
12:14:25 Error in expression <5],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error position: <Vehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error Missing ;
12:14:25 File z\addons\dayz_server\WAI\static\default.sqf, line 399
12:14:25 Error in expression <5],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error position: <Vehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error Missing ;

[\spoiler]

static spawn file

//Custom Spawns file//

// These custom spawns are for use in static mission locations. You can set markers in mission.sqm if you want them.

/*
Custom group spawns Eg.

[
    [953.237,4486.48,0.001],        // Position
    4,                                // Number Of units
    "Random",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random", or ["Random","at"],    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;

Place your custom group spawns below
*/
[
    [22986.715,19267.631,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;
[
    [22573.023,19379.523,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;
[
    [22462.225,19485.725,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;
[
    [22897.416,19895.643,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22505.922,20056.195,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22643.256,20174.373,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22203.928,19855.676,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;  
[
    [22203.928,19855.676,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22192.041,19569.52,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22212.896,19364.443,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22548.52,19703.369,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22269.102,19513.352,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22410.285,19728.063,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;     
[
    [22246.936,19810.277,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    
[
    [22167.385,19769.764,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22323.691,19222.611,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    
[
    [22762.738,19857.42,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    ["Random","AT"],                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;      
[
    [22926.75,19669.982,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    ["Random","AT"],                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    
[
    [22307.414,19974.844,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    ["Random","AT"],                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    

/*
Custom static weapon spawns Eg. (with mutiple positions)

[
    [                                // Position(s) (can be multiple)
        [911.21,4532.76,2.62],
        [921.21,4542.76,2.62]
    ],
    "M2StaticMG",                    // Classname of turret
    "easy",                            // Skill level of unit (easy, medium, hard, extreme, Random)
    "Bandit2_DZ",                    // Skin classname, use "Random" or classname here
    "Bandit",                        // AI Type, "Hero" or "Bandit".
    "Random",                        // Primary gun set number. "Random" for random weapon set
    2,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random"                        // Gearset classname, use "Random" or classname here
] call spawn_static;

Place your custom static weapon spawns below
*/
  [    
        [                                      // Position(s) (can be multiple)
            [22215.723, 19780.213, 13.0001],
            [22338.311, 19738.691, 23.540525],
            [22884.711, 19856.395, 11.0001],
            [22446.395, 20098.475, 6.8244929],
            [22536.129, 19998.018, 6.6184354],
            [23064.297, 19371.266, 10.033691]
            
        ],
        "DSHKM_Ins",                        // Classname of turret
        "medium",                            // Skill level of unit (easy, medium, hard, extreme, Random)
        "Random",                            // Skin classname, use "Random" or classname here
        "Bandit",                            // AI Type, "Hero" or "Bandit".
        "Random",                            // Primary gun set number. "Random" for random weapon set
        9,                                    // Number of magazines
        "Random",                            // Backpack classname, use "Random" or classname here
        "random"                            // Gearset classname, use "Random" or classname here
    ] call spawn_static;

/*
Custom Chopper Patrol spawn Eg.

[
    [725.391,4526.06,0],            // Position to patrol
    2000,                            // Radius of patrol
    10,                                // Number of waypoints to give
    "UH1H_DZ",                        // Classname of vehicle (make sure it has driver and two gunners)
    "Random",                        // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",                        // Skin classname, use "Random" or classname here
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call heli_patrol;

Place your heli patrols below
*/
[
    [22575.373, 19622.406, 0],
    900,
    10,
    "UH1H_DZ",
    "Random",
    "Random",
    "Bandit"
] spawn heli_patrol;
/* 
Custom Vehicle patrol spawns Eg. (Watch out they are stupid)

[
    [725.391,4526.06,0],            // Position to patrol
    [725.391,4526.06,0],            // Position to spawn at
    200,                            // Radius of patrol
    10,                                // Number of waypoints to give
    "HMMWV_Armored",                // Classname of vehicle (make sure it has driver and gunner)
    "Random",                        // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",                        // Skin classname, use "Random" or classname here
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call vehicle_patrol;

Place your vehicle patrols below this line
*/
[[22737.723,19308.193,0],[22737.723,19308.193,0],200,10,"HMMWV_Avenger","Random","Random","Bandit"] spawn vehicle_patrol;     
[[22538.777,19899.162],[22538.777,19899.162],500,10,"HMMWV_Avenger","Random","Random","Bandit"] spawn vehicle_patrol;        
[[22869.115,19744.039],[22869.115,19744.039],500,10,"HMMWV_Armored","Random","Random","Bandit"] spawn vehicle_patrol;        
[[22353.209,19903.762,0],[22353.209,19903.762,0],500,10,"HMMWV_Armored","Random","Random","Bandit"] spawn vehicle_patrol;        
[[22617.42,20172.283,0],[22617.42,20172.283,0],500,10,"HMMWV_Armored","Random","Random","Bandit"] spawn vehicle_patrol;
/* 
Custom Boat patrol spawns

[
    [725.391,4526.06,0],            // Position to patrol
    [725.391,4526.06,0],            // Position to spawn at
    150,                            // Radius of patrol. Your spawn point should be at least this distance from shore.
    10,                                // Number of waypoints to give
    "RHIB",                            // Classname of armed boat (make sure it has driver and gunner)
    "Random",                        // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",                        // Skin classname, use "Random" or classname here
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call vehicle_patrol;

Place your boat patrols below this line
*/

/*
Paradropped unit custom spawn Eg.

[
    [911.21545,4532.7612,2.6292224],    // Position that units will be dropped by
    400,                                // Radius from drop position a player has to be to spawn chopper
    "UH1H_DZ",                            // Classname of chopper (Make sure it has 2 gunner seats!)
    "North",                            // Direction of approach for the helicopter. Options: "North","South","East","West"
    [3000,4000],                        // Random distance from the mission the helicopter should start. [min distance, max distance].
    150,                                // Fly in height of the helicopter. Be careful that the height is not too low or the AI might die when they hit the ground
    1.0,                                // Time in seconds between each deployed paratrooper. Higher number means paradropped AI will be more spread apart. Time of 0 means they all jump out rapidly.
    200,                                // Distance from the mission the helicopter should start dropping paratroopers
    5,                                    // Number of units to be para dropped
    "Random",                            // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",    or ["Random","at"],        // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher
    4,                                    // Number of magazines
    "Random",                            // Backpack classname, use "Random" or classname here
    "Bandit2_DZ",                        // Skin classname, use "Random" or classname here
    "Random",                            // Gearset number. "Random" for random gear set.
    "Bandit",                            // AI Type, "Hero" or "Bandit".
    true                                // true: Aircraft will stay at position and fight. false: Heli will leave if not under fire. 
] spawn heli_para;

Place your paradrop spawns under this line
*/
[[22353.209,19903.762,0],400,"UH1H_DZ","North",[3000,4000],200,1.0,200,5,"Random","Random",4,"Random","Bandit","Random","Bandit",true] spawn heli_para;
[[22617.42,20172.283,0],400,"UH1H_DZ","North",[3000,4000],200,1.0,200,5,"Random","Random",4,"Random","Bandit","Random","Bandit",true] spawn heli_para;
[[22617.42,20172.283,0],400,"UH1H_DZ","North",[3000,4000],250,1.0,200,10,"Random","Random",4,"Random","Bandit","Random","Bandit",true] spawn heli_para;


/* Custom Crate Spawns

_position = [911.21545,4532.7612,0]; // Position of the crate

_loot = 
[
    0, // Max number of long guns OR [MAX number of long guns,gun_array]
    0, // Max number of tools OR [MAX number of tools,tool_array]
    0, // Max number of items OR [MAX number of items,item_array]
    0, // Max number of pistols OR [MAX number of pistol,pistol_array]
    0 // Max number of backpacks OR [MAX number of backpacks,backpack_array]
];

// Spawn one crate - Best option for static positions because offsets are not needed.
[[
    [_loot,crates_large,[0,0]] // [loot variable, crate array, 2d offsets]
],_position] call wai_spawnCrate;


// Multiple crate spawning option
[[
    [_loot,"USVehicleBox",[0,0]], // [loot variable, crate classname, 2d offsets]
    [[0,0,[3,crate_items_crop_raider],0,0],crates_large,[0,0,0]], // [loot variable, crate array, 3d offsets]
    [[0,0,0,0,0],crates_large,[0,0],60] // [loot array, crate array, 2d offsets, optional direction]
],_position] call wai_spawnCrate;

Place your crate spawns under this line
*/

_crate = createVehicle ["USVehicleBox",[22517.953,19877.98],[],0,"CAN_COLLIDE"];
_crate1 = createVehicle ["USVehicleBox",[22431.34,20080.307,-6.1035156e-005],[],0,"CAN_COLLIDE"];
_crate2 = createVehicle ["USVehicleBox",[22451.742,19460.035,2.7656555e-005],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[22333.867,20179.715,-3.5762787e-005],[],0,"CAN_COLLIDE"];

_crate call wai_crate_setup;
_crate1 call wai_crate_setup;
_crate2 call wai_crate_setup;
_crate3 call wai_crate_setup;

[_crate,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate1,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[4,crate_backpacks_large]]] call dynamic_crate;
[_crate2,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate3,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[4,crate_backpacks_large]]] call dynamic_crate;


diag_log "WAI: Static mission loaded";
[\spoiler]

i no its to do with the crate spawns, 

Share this post


Link to post
Share on other sites
On 7/12/2019 at 2:34 PM, don2k7 said:

hello i have installed this it works great the only problem i have is that i created a static mission using the example file and looked at the previous comments on this forum but am getting an error i cant seem to fix was wondering if anyone can help

error

 

  Hide contents

 

12:14:25 "WAI: AI Config File Loaded"
12:14:25 "WAI: Overpoch Config File Loaded"
12:14:25 Error in expression <5],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error position: <Vehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error Missing ;
12:14:25 File z\addons\dayz_server\WAI\static\default.sqf, line 399
12:14:25 Error in expression <5],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error position: <Vehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error Missing ;
12:14:25 File z\addons\dayz_server\WAI\static\default.sqf, line 399
12:14:25 Error in expression <5],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error position: <Vehicle ["USVehicleBox",[22333.867,20>
12:14:25   Error Missing ;

[\spoiler]

static spawn file

 

  Reveal hidden contents

 

//Custom Spawns file//

// These custom spawns are for use in static mission locations. You can set markers in mission.sqm if you want them.

/*
Custom group spawns Eg.

[
    [953.237,4486.48,0.001],        // Position
    4,                                // Number Of units
    "Random",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random", or ["Random","at"],    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;

Place your custom group spawns below
*/
[
    [22986.715,19267.631,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;
[
    [22573.023,19379.523,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;
[
    [22462.225,19485.725,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;
[
    [22897.416,19895.643,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22505.922,20056.195,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22643.256,20174.373,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22203.928,19855.676,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;  
[
    [22203.928,19855.676,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22192.041,19569.52,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22212.896,19364.443,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22548.52,19703.369,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22269.102,19513.352,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22410.285,19728.063,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;     
[
    [22246.936,19810.277,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    
[
    [22167.385,19769.764,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22323.691,19222.611,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    
[
    [22762.738,19857.42,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    ["Random","AT"],                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;      
[
    [22926.75,19669.982,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    ["Random","AT"],                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    
[
    [22307.414,19974.844,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    ["Random","AT"],                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    

/*
Custom static weapon spawns Eg. (with mutiple positions)

[
    [                                // Position(s) (can be multiple)
        [911.21,4532.76,2.62],
        [921.21,4542.76,2.62]
    ],
    "M2StaticMG",                    // Classname of turret
    "easy",                            // Skill level of unit (easy, medium, hard, extreme, Random)
    "Bandit2_DZ",                    // Skin classname, use "Random" or classname here
    "Bandit",                        // AI Type, "Hero" or "Bandit".
    "Random",                        // Primary gun set number. "Random" for random weapon set
    2,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random"                        // Gearset classname, use "Random" or classname here
] call spawn_static;

Place your custom static weapon spawns below
*/
  [    
        [                                      // Position(s) (can be multiple)
            [22215.723, 19780.213, 13.0001],
            [22338.311, 19738.691, 23.540525],
            [22884.711, 19856.395, 11.0001],
            [22446.395, 20098.475, 6.8244929],
            [22536.129, 19998.018, 6.6184354],
            [23064.297, 19371.266, 10.033691]
            
        ],
        "DSHKM_Ins",                        // Classname of turret
        "medium",                            // Skill level of unit (easy, medium, hard, extreme, Random)
        "Random",                            // Skin classname, use "Random" or classname here
        "Bandit",                            // AI Type, "Hero" or "Bandit".
        "Random",                            // Primary gun set number. "Random" for random weapon set
        9,                                    // Number of magazines
        "Random",                            // Backpack classname, use "Random" or classname here
        "random"                            // Gearset classname, use "Random" or classname here
    ] call spawn_static;

/*
Custom Chopper Patrol spawn Eg.

[
    [725.391,4526.06,0],            // Position to patrol
    2000,                            // Radius of patrol
    10,                                // Number of waypoints to give
    "UH1H_DZ",                        // Classname of vehicle (make sure it has driver and two gunners)
    "Random",                        // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",                        // Skin classname, use "Random" or classname here
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call heli_patrol;

Place your heli patrols below
*/
[
    [22575.373, 19622.406, 0],
    900,
    10,
    "UH1H_DZ",
    "Random",
    "Random",
    "Bandit"
] spawn heli_patrol;
/* 
Custom Vehicle patrol spawns Eg. (Watch out they are stupid)

[
    [725.391,4526.06,0],            // Position to patrol
    [725.391,4526.06,0],            // Position to spawn at
    200,                            // Radius of patrol
    10,                                // Number of waypoints to give
    "HMMWV_Armored",                // Classname of vehicle (make sure it has driver and gunner)
    "Random",                        // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",                        // Skin classname, use "Random" or classname here
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call vehicle_patrol;

Place your vehicle patrols below this line
*/
[[22737.723,19308.193,0],[22737.723,19308.193,0],200,10,"HMMWV_Avenger","Random","Random","Bandit"] spawn vehicle_patrol;     
[[22538.777,19899.162],[22538.777,19899.162],500,10,"HMMWV_Avenger","Random","Random","Bandit"] spawn vehicle_patrol;        
[[22869.115,19744.039],[22869.115,19744.039],500,10,"HMMWV_Armored","Random","Random","Bandit"] spawn vehicle_patrol;        
[[22353.209,19903.762,0],[22353.209,19903.762,0],500,10,"HMMWV_Armored","Random","Random","Bandit"] spawn vehicle_patrol;        
[[22617.42,20172.283,0],[22617.42,20172.283,0],500,10,"HMMWV_Armored","Random","Random","Bandit"] spawn vehicle_patrol;
/* 
Custom Boat patrol spawns

[
    [725.391,4526.06,0],            // Position to patrol
    [725.391,4526.06,0],            // Position to spawn at
    150,                            // Radius of patrol. Your spawn point should be at least this distance from shore.
    10,                                // Number of waypoints to give
    "RHIB",                            // Classname of armed boat (make sure it has driver and gunner)
    "Random",                        // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",                        // Skin classname, use "Random" or classname here
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call vehicle_patrol;

Place your boat patrols below this line
*/

/*
Paradropped unit custom spawn Eg.

[
    [911.21545,4532.7612,2.6292224],    // Position that units will be dropped by
    400,                                // Radius from drop position a player has to be to spawn chopper
    "UH1H_DZ",                            // Classname of chopper (Make sure it has 2 gunner seats!)
    "North",                            // Direction of approach for the helicopter. Options: "North","South","East","West"
    [3000,4000],                        // Random distance from the mission the helicopter should start. [min distance, max distance].
    150,                                // Fly in height of the helicopter. Be careful that the height is not too low or the AI might die when they hit the ground
    1.0,                                // Time in seconds between each deployed paratrooper. Higher number means paradropped AI will be more spread apart. Time of 0 means they all jump out rapidly.
    200,                                // Distance from the mission the helicopter should start dropping paratroopers
    5,                                    // Number of units to be para dropped
    "Random",                            // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",    or ["Random","at"],        // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher
    4,                                    // Number of magazines
    "Random",                            // Backpack classname, use "Random" or classname here
    "Bandit2_DZ",                        // Skin classname, use "Random" or classname here
    "Random",                            // Gearset number. "Random" for random gear set.
    "Bandit",                            // AI Type, "Hero" or "Bandit".
    true                                // true: Aircraft will stay at position and fight. false: Heli will leave if not under fire. 
] spawn heli_para;

Place your paradrop spawns under this line
*/
[[22353.209,19903.762,0],400,"UH1H_DZ","North",[3000,4000],200,1.0,200,5,"Random","Random",4,"Random","Bandit","Random","Bandit",true] spawn heli_para;
[[22617.42,20172.283,0],400,"UH1H_DZ","North",[3000,4000],200,1.0,200,5,"Random","Random",4,"Random","Bandit","Random","Bandit",true] spawn heli_para;
[[22617.42,20172.283,0],400,"UH1H_DZ","North",[3000,4000],250,1.0,200,10,"Random","Random",4,"Random","Bandit","Random","Bandit",true] spawn heli_para;


/* Custom Crate Spawns

_position = [911.21545,4532.7612,0]; // Position of the crate

_loot = 
[
    0, // Max number of long guns OR [MAX number of long guns,gun_array]
    0, // Max number of tools OR [MAX number of tools,tool_array]
    0, // Max number of items OR [MAX number of items,item_array]
    0, // Max number of pistols OR [MAX number of pistol,pistol_array]
    0 // Max number of backpacks OR [MAX number of backpacks,backpack_array]
];

// Spawn one crate - Best option for static positions because offsets are not needed.
[[
    [_loot,crates_large,[0,0]] // [loot variable, crate array, 2d offsets]
],_position] call wai_spawnCrate;


// Multiple crate spawning option
[[
    [_loot,"USVehicleBox",[0,0]], // [loot variable, crate classname, 2d offsets]
    [[0,0,[3,crate_items_crop_raider],0,0],crates_large,[0,0,0]], // [loot variable, crate array, 3d offsets]
    [[0,0,0,0,0],crates_large,[0,0],60] // [loot array, crate array, 2d offsets, optional direction]
],_position] call wai_spawnCrate;

Place your crate spawns under this line
*/

_crate = createVehicle ["USVehicleBox",[22517.953,19877.98],[],0,"CAN_COLLIDE"];
_crate1 = createVehicle ["USVehicleBox",[22431.34,20080.307,-6.1035156e-005],[],0,"CAN_COLLIDE"];
_crate2 = createVehicle ["USVehicleBox",[22451.742,19460.035,2.7656555e-005],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[22333.867,20179.715,-3.5762787e-005],[],0,"CAN_COLLIDE"];

_crate call wai_crate_setup;
_crate1 call wai_crate_setup;
_crate2 call wai_crate_setup;
_crate3 call wai_crate_setup;

[_crate,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate1,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[4,crate_backpacks_large]]] call dynamic_crate;
[_crate2,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate3,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[4,crate_backpacks_large]]] call dynamic_crate;


diag_log "WAI: Static mission loaded";
[\spoiler]

i no its to do with the crate spawns, 

you forgot the semicolon in the file z\addons\dayz_server\WAI\static\default.sqf near line 399.

Share this post


Link to post
Share on other sites
2 hours ago, WLF said:

you forgot the semicolon in the file z\addons\dayz_server\WAI\static\default.sqf near line 399.

hi thanks for getting back to me

this is line 397 to 402, i just can't see where i am missing the semicolon

 

 _crate = createVehicle ["USVehicleBox",[22517.953,19877.98],[],0,"CAN_COLLIDE"];
_crate1 = createVehicle ["USVehicleBox",[22431.34,20080.307,-6.1035156e-005],[],0,"CAN_COLLIDE"];
_crate2 = createVehicle ["USVehicleBox",[22451.742,19460.035,2.7656555e-005],[],0,"CAN_COLLIDE"];
 _crate3 = createVehicle ["USVehicleBox",[22333.867,20179.715,-3.5762787e-005],[],0,"CAN_COLLIDE"];

_crate call wai_crate_setup;

[\spoiler]

Share this post


Link to post
Share on other sites
On 7/16/2019 at 1:50 PM, don2k7 said:

hi thanks for getting back to me

this is line 397 to 402, i just can't see where i am missing the semicolon

Post whole file default.sqf

Share this post


Link to post
Share on other sites
On 7/25/2019 at 3:51 PM, WLF said:

Post whole file default.sqf

here is the whole file

//Custom Spawns file//

// These custom spawns are for use in static mission locations. You can set markers in mission.sqm if you want them.

/*
Custom group spawns Eg.

[
    [953.237,4486.48,0.001],        // Position
    4,                                // Number Of units
    "Random",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random", or ["Random","at"],    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;

Place your custom group spawns below
*/
[
    [22986.715,19267.631,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;
[
    [22573.023,19379.523,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;
[
    [22462.225,19485.725,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;
[
    [22897.416,19895.643,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22505.922,20056.195,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22643.256,20174.373,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22203.928,19855.676,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;  
[
    [22203.928,19855.676,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group; 
[
    [22192.041,19569.52,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22212.896,19364.443,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22548.52,19703.369,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22269.102,19513.352,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22410.285,19728.063,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;     
[
    [22246.936,19810.277,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    
[
    [22167.385,19769.764,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;   
[
    [22323.691,19222.611,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    "Random",                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    
[
    [22762.738,19857.42,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    ["Random","AT"],                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;      
[
    [22926.75,19669.982,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    ["Random","AT"],                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    
[
    [22307.414,19974.844,0],        // Position
    4,                                // Number Of units
    "hard",                        // Skill level of unit (easy, medium, hard, extreme, Random)
    ["Random","AT"],                    // Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
    4,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random",                        // Skin classname, use "Random" or classname here
    "Random",                        // Gearset number. "Random" for random gear set
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call spawn_group;    

/*
Custom static weapon spawns Eg. (with mutiple positions)

[
    [                                // Position(s) (can be multiple)
        [911.21,4532.76,2.62],
        [921.21,4542.76,2.62]
    ],
    "M2StaticMG",                    // Classname of turret
    "easy",                            // Skill level of unit (easy, medium, hard, extreme, Random)
    "Bandit2_DZ",                    // Skin classname, use "Random" or classname here
    "Bandit",                        // AI Type, "Hero" or "Bandit".
    "Random",                        // Primary gun set number. "Random" for random weapon set
    2,                                // Number of magazines
    "Random",                        // Backpack classname, use "Random" or classname here
    "Random"                        // Gearset classname, use "Random" or classname here
] call spawn_static;

Place your custom static weapon spawns below
*/
  [    
        [                                      // Position(s) (can be multiple)
            [22215.723, 19780.213, 13.0001],
            [22338.311, 19738.691, 23.540525],
            [22884.711, 19856.395, 11.0001],
            [22446.395, 20098.475, 6.8244929],
            [22536.129, 19998.018, 6.6184354],
            [23064.297, 19371.266, 10.033691]
            
        ],
        "DSHKM_Ins",                        // Classname of turret
        "medium",                            // Skill level of unit (easy, medium, hard, extreme, Random)
        "Random",                            // Skin classname, use "Random" or classname here
        "Bandit",                            // AI Type, "Hero" or "Bandit".
        "Random",                            // Primary gun set number. "Random" for random weapon set
        9,                                    // Number of magazines
        "Random",                            // Backpack classname, use "Random" or classname here
        "random"                            // Gearset classname, use "Random" or classname here
    ] call spawn_static;

/*
Custom Chopper Patrol spawn Eg.

[
    [725.391,4526.06,0],            // Position to patrol
    2000,                            // Radius of patrol
    10,                                // Number of waypoints to give
    "UH1H_DZ",                        // Classname of vehicle (make sure it has driver and two gunners)
    "Random",                        // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",                        // Skin classname, use "Random" or classname here
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call heli_patrol;

Place your heli patrols below
*/
[
    [22575.373, 19622.406, 0],
    900,
    10,
    "UH1H_DZ",
    "Random",
    "Random",
    "Bandit"
] spawn heli_patrol;
/* 
Custom Vehicle patrol spawns Eg. (Watch out they are stupid)

[
    [725.391,4526.06,0],            // Position to patrol
    [725.391,4526.06,0],            // Position to spawn at
    200,                            // Radius of patrol
    10,                                // Number of waypoints to give
    "HMMWV_Armored",                // Classname of vehicle (make sure it has driver and gunner)
    "Random",                        // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",                        // Skin classname, use "Random" or classname here
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call vehicle_patrol;

Place your vehicle patrols below this line
*/
[[22737.723,19308.193,0],[22737.723,19308.193,0],200,10,"HMMWV_Avenger","Random","Random","Bandit"] spawn vehicle_patrol;     
[[22538.777,19899.162],[22538.777,19899.162],500,10,"HMMWV_Avenger","Random","Random","Bandit"] spawn vehicle_patrol;        
[[22869.115,19744.039],[22869.115,19744.039],500,10,"HMMWV_Armored","Random","Random","Bandit"] spawn vehicle_patrol;        
[[22353.209,19903.762,0],[22353.209,19903.762,0],500,10,"HMMWV_Armored","Random","Random","Bandit"] spawn vehicle_patrol;        
[[22617.42,20172.283,0],[22617.42,20172.283,0],500,10,"HMMWV_Armored","Random","Random","Bandit"] spawn vehicle_patrol;
/* 
Custom Boat patrol spawns

[
    [725.391,4526.06,0],            // Position to patrol
    [725.391,4526.06,0],            // Position to spawn at
    150,                            // Radius of patrol. Your spawn point should be at least this distance from shore.
    10,                                // Number of waypoints to give
    "RHIB",                            // Classname of armed boat (make sure it has driver and gunner)
    "Random",                        // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",                        // Skin classname, use "Random" or classname here
    "Bandit"                        // AI Type, "Hero" or "Bandit".
] call vehicle_patrol;

Place your boat patrols below this line
*/

/*
Paradropped unit custom spawn Eg.

[
    [911.21545,4532.7612,2.6292224],    // Position that units will be dropped by
    400,                                // Radius from drop position a player has to be to spawn chopper
    "UH1H_DZ",                            // Classname of chopper (Make sure it has 2 gunner seats!)
    "North",                            // Direction of approach for the helicopter. Options: "North","South","East","West"
    [3000,4000],                        // Random distance from the mission the helicopter should start. [min distance, max distance].
    150,                                // Fly in height of the helicopter. Be careful that the height is not too low or the AI might die when they hit the ground
    1.0,                                // Time in seconds between each deployed paratrooper. Higher number means paradropped AI will be more spread apart. Time of 0 means they all jump out rapidly.
    200,                                // Distance from the mission the helicopter should start dropping paratroopers
    5,                                    // Number of units to be para dropped
    "Random",                            // Skill level of units (easy, medium, hard, extreme, Random)
    "Random",    or ["Random","at"],        // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher
    4,                                    // Number of magazines
    "Random",                            // Backpack classname, use "Random" or classname here
    "Bandit2_DZ",                        // Skin classname, use "Random" or classname here
    "Random",                            // Gearset number. "Random" for random gear set.
    "Bandit",                            // AI Type, "Hero" or "Bandit".
    true                                // true: Aircraft will stay at position and fight. false: Heli will leave if not under fire. 
] spawn heli_para;

Place your paradrop spawns under this line
*/
[[22353.209,19903.762,0],400,"UH1H_DZ","North",[3000,4000],200,1.0,200,5,"Random","Random",4,"Random","Bandit","Random","Bandit",true] spawn heli_para;
[[22617.42,20172.283,0],400,"UH1H_DZ","North",[3000,4000],200,1.0,200,5,"Random","Random",4,"Random","Bandit","Random","Bandit",true] spawn heli_para;
[[22617.42,20172.283,0],400,"UH1H_DZ","North",[3000,4000],250,1.0,200,10,"Random","Random",4,"Random","Bandit","Random","Bandit",true] spawn heli_para;


/* Custom Crate Spawns

_position = [911.21545,4532.7612,0]; // Position of the crate

_loot = 
[
    0, // Max number of long guns OR [MAX number of long guns,gun_array]
    0, // Max number of tools OR [MAX number of tools,tool_array]
    0, // Max number of items OR [MAX number of items,item_array]
    0, // Max number of pistols OR [MAX number of pistol,pistol_array]
    0 // Max number of backpacks OR [MAX number of backpacks,backpack_array]
];

// Spawn one crate - Best option for static positions because offsets are not needed.
[[
    [_loot,crates_large,[0,0]] // [loot variable, crate array, 2d offsets]
],_position] call wai_spawnCrate;


// Multiple crate spawning option
[[
    [_loot,"USVehicleBox",[0,0]], // [loot variable, crate classname, 2d offsets]
    [[0,0,[3,crate_items_crop_raider],0,0],crates_large,[0,0,0]], // [loot variable, crate array, 3d offsets]
    [[0,0,0,0,0],crates_large,[0,0],60] // [loot array, crate array, 2d offsets, optional direction]
],_position] call wai_spawnCrate;

Place your crate spawns under this line
*/

_crate = createVehicle ["USVehicleBox",[22517.953,19877.98],[],0,"CAN_COLLIDE"];
_crate1 = createVehicle ["USVehicleBox",[22431.34,20080.307,-6.1035156e-005],[],0,"CAN_COLLIDE"];
_crate2 = createVehicle ["USVehicleBox",[22451.742,19460.035,2.7656555e-005],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[22333.867,20179.715,-3.5762787e-005],[],0,"CAN_COLLIDE"];

_crate call wai_crate_setup;
_crate1 call wai_crate_setup;
_crate2 call wai_crate_setup;
_crate3 call wai_crate_setup;

[_crate,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate1,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[4,crate_backpacks_large]]] call dynamic_crate;
[_crate2,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate3,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[4,crate_backpacks_large]]] call dynamic_crate;


diag_log "WAI: Static mission loaded";
 

[\spoiler]

Share this post


Link to post
Share on other sites
On 7/27/2019 at 12:26 PM, don2k7 said:

_crate call wai_crate_setup;
_crate1 call wai_crate_setup;
_crate2 call wai_crate_setup;
_crate3 call wai_crate_setup;

What is it "wai_crate_setup"? WAI have not this function.

Share this post


Link to post
Share on other sites
20 hours ago, WLF said:

What is it "wai_crate_setup"? WAI have not this function.

that is taken from a post by jasonTM about halfway down the first page of this topic 

Share this post


Link to post
Share on other sites

old version has it. but current version lost it.

add this in the top of your sqf 

Spoiler


  wai_crate_setup = {
        private ["_crate"];
        _crate = _this;
        _crate setVariable ["ObjectID","1",true];
        _crate setVariable ["ObjectUID", "1", true];
        _crate setVariable ["permaLoot",true];
        clearWeaponCargoGlobal _crate;
        clearMagazineCargoGlobal _crate;
        dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_crate];
        _crate addEventHandler ["HandleDamage", {}];
        _crate enableSimulation false;
  };

Share this post


Link to post
Share on other sites

How do you add them?

You might not set up the vehicle correctly. There are some variables that must be set up correctly, else the ingame createvehicle check will

kill the vehicle as soon as someone enters it.

e.g.:
 

dayz_serverObjectMonitor set [count dayz_serverObjectMonitor, _object];

_object setVariable ["ObjectID", "1", true];
_object setVariable ["ObjectUID", "1", true];

 

Share this post


Link to post
Share on other sites

right in the mayors_mansion.sqf

[[(_position select 0) + 100, _position select 1, 0],[(_position select 0) + 100, _position select 1, 0],50,2,"HMMWV_M1151_M2_CZ_DES_EP1_DZE","Random",_aiType,_aiType,_mission] call vehicle_patrol;
[[(_position select 0) - 100, _position select 1, 0],[(_position select 0) + 100, _position select 1, 0],50,2,"BRDM2_TK_EP1","Random","_aiType","_aiType",_mission] call vehicle_patrol;
[[(_position select 0) + 200, _position select 1, 0],[(_position select 0) + 200, _position select 1, 0],50,2,"BRDM2_GUE","Random","_aiType","_aiType",_mission] call vehicle_patrol;

 

hummer will spawn, BRDM's will not. If i do one at a time the hummer will be good, if i do the BRDM, it's on fire when i get to the mission.

 

Share this post


Link to post
Share on other sites
1 hour ago, Khyron said:

right in the mayors_mansion.sqf

[[(_position select 0) + 100, _position select 1, 0],[(_position select 0) + 100, _position select 1, 0],50,2,"HMMWV_M1151_M2_CZ_DES_EP1_DZE","Random",_aiType,_aiType,_mission] call vehicle_patrol;
[[(_position select 0) - 100, _position select 1, 0],[(_position select 0) + 100, _position select 1, 0],50,2,"BRDM2_TK_EP1","Random","_aiType","_aiType",_mission] call vehicle_patrol;
[[(_position select 0) + 200, _position select 1, 0],[(_position select 0) + 200, _position select 1, 0],50,2,"BRDM2_GUE","Random","_aiType","_aiType",_mission] call vehicle_patrol;

 

hummer will spawn, BRDM's will not. If i do one at a time the hummer will be good, if i do the BRDM, it's on fire when i get to the mission.

 

what are those double-quotations?
I can't believe you joined here October 26, 2014 ...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...