Jump to content
Sign in to follow this  
Riverman23

Rescuing Captives

Recommended Posts

So one of the missions i'm trying to design, a covert element is moving behind enemy lines in Tanoa. Their mission is to find and rescue civilians that have been kidnapped from the local villages and sold to human traffickers, while also taking out the different camps and higher ups within the network. Now just so you are aware, ACE is being used in this mission and I was going to try to take advantage of the captive systems within the mod as much as I could. I want the guys on the ground to rescue the captives, have the captives join their team temporarily, then the team will escort the captives to an extraction helicopter to get them to safety. As soon as the captive is loaded, I want them to leave the team so the leader is no longer responsible for them.

Share this post


Link to post
Share on other sites

I can't help you much as I don't use ACE but these might...

https://ace3mod.com/wiki/framework/interactionMenu-framework.html

https://ace3mod.com/wiki/feature/captives.html

Have an action on them which when you select, it makes them join your group. To do that, use this:

https://community.bistudio.com/wiki/joinSilent

Examples on the Wiki. Or use waitUntil with distance2D which then makes them join your group. A bit of code from my hostage rescue. The hostage is passed to the function. You won't see that in the code below. This will need tweaking to work for your mission, etc... It should give you an idea though.

private _leader = objNull;

private _return = false;

waitUntil
{
	{
		if ((_hostage distance2D _x <= 8) && (isPlayer _x)) then
		{
			_return = true;
			_leader = _x;
		} else
		{
			_return = false;
		};
	} forEach allUnits;
	_return
};

I'm not sure if you need to have a variable like I did (_return) as I think it would return BOOL without? Not 100% sure.

 

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  

×