Jump to content
Sign in to follow this  
hogmason

Air Patrols with UPS /UPSMON

Recommended Posts

So i am wanting to create some random dynamic air patrols i think using UPS or UPSMON

i made this Airpatrol.sqf and placed a marker on the map called A_Patrol for the patrol area

	for "_i" from 0 to 10 do 
	{
	_grp2 = [];
	_spawn2 = getMarkerPos "A_Patrol";
	_offset2 = [1000,2000,3000,4000,5000] call BIS_fnc_selectRandom;
	_offset3 = random 100;
	_prec2 = random 100;
	_bestplace2 = selectBestPlaces [_spawn2,_offset2,_prec2,1];
	_spot4 = _bestplace2 select 0;
	_spot3 = _spot4 select 0;
	_safespawn2 = _spot3 findEmptyPosition [10, 75, "tank"];
	_randomvehicle2 = ["Su34","Mi17_rockets_RU","Ka52","Su39"] call BIS_fnc_selectRandom;
	_direction2 = random 359;
	_AirCreated =[_safespawn2, _direction2, _randomvehicle2, EAST] call BIS_fnc_spawnvehicle;
	_Airgroup = _AirCreated select 2;//group
	[(units _Airgroup) select 0, "A_Patrol","spawned","random","nowait","respawn:50","delete:",120] execVM "scripts\upsmon.sqf";
	};

wich will create the patrols for me but it doesnt work does any 1 know how to create random air patrols or know why the above code isnt working.

Share this post


Link to post
Share on other sites

have you tested if the script runs??

does the loop starts?

you said none of the waypoints show up ,not even a first one?

and a couple more questions... i am not sure of having understood the script...are the waypoints created at random places??

and if they are,doesn't the mission lag?

If everything is as i supose it's, i think the problem its with the creation of the waypoints.

I think it cannot create from so few data... anyway i am not sure how adding an specific zone for the waypoints to create...i think it would be too hard...if its only for flying a plane in some sort of patrol and sometimes engange with some spawned vehicles i'd place some makers, define the units and vehicles you want there(or the probability)and use the random comand for picking one marker as a waypoint.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×