Jump to content
Echo5Hotel Actual

Some help with pursuit script?

Recommended Posts

I am by far not a scripting guru.  If someone would be so kind to help me create a script I need for a mission.  I simply want to be able to have opfor squads try to track and chase down a bluefor squad on foot.  I have tried a couple of scripts I found here but I think that they were written for OA.  Unfortunately they are generating errors and/or not working properly.  Can one of you guys who are much better at this write a simple script that I can use to make that happen?  It is a situation kind of like the movie "Tears of the Sun" where a larger unit is tracking and pursuing the smaller unit all across the map.  Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Fn_Pursuit = {
	private _sqh = _this select 0;
	private _sqv = _this select 1;
	
	while {{alive _x} count units _sqh > 0 and {{alive _x} count units _sqv > 0}} do {
		if (alive leader _sqh and alive leader _sqv) then {
			_sqh move (getPos leader _sqv)};
		sleep 10;
	};
	systemChat "Exit";
};

[_pursuer_group, _pursued_group] spawn Fn_Pursuit;

UPD: Fixed bugs

 

Mission: Pursuit.Altis

  • Like 1

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

×