Jump to content
Sign in to follow this  
WallyJas

AI set to capture enemy not kill

Recommended Posts

Hey guys,

I am new to ARMA and the editor but I have been having a bit of a play this last week.

I am wanting to make a mission where the Bluefor have to chase down and capture an Insurgent office who is travelling in a car.

I am wondering if it is possible to set the bots so that they want to capture an enemy rather than kill them.

Cheers,

Wal

Share this post


Link to post
Share on other sites
Hey guys,

I am new to ARMA and the editor but I have been having a bit of a play this last week.

I am wanting to make a mission where the Bluefor have to chase down and capture an Insurgent office who is travelling in a car.

I am wondering if it is possible to set the bots so that they want to capture an enemy rather than kill them.

Cheers,

Wal

Just must be new :0 This is the map editing area and i doubt the above has to do with you building an island.

This thread will probably be tossed around but try the mission making area mate :)

Share this post


Link to post
Share on other sites
Hey guys,

I am new to ARMA and the editor but I have been having a bit of a play this last week.

I am wanting to make a mission where the Bluefor have to chase down and capture an Insurgent office who is travelling in a car.

I am wondering if it is possible to set the bots so that they want to capture an enemy rather than kill them.

Cheers,

Wal

Please search.

Share this post


Link to post
Share on other sites

Welcome to ArmA2 and please ignore the grumpy natives, roaming this forum. To address your question:

Have you considered making the enemy officer a civilian instead? The AI don't shoot civvies intentionally. And since you want to avoid having him shot in the first placce, it sounds like a working solution to me. That way you only have to concentrate on the capturing part, without waisting any time on protecting your target from stray bullets.

Share this post


Link to post
Share on other sites

Hi WallyJas,

although nominesine's suggestion looks pretty useful, does it, let me point out another one as I think you actually might want to let your AI catch an insurgent officer :

http://community.bistudio.com/wiki/setCaptive

AnyUnit SetCaptive true;

does exactly what you might be looking for, i.e. the AI doesn't fire at such a unit at all.

Additonally comfort you may find with the fact that you can switch it on/off at any time

Edited by Wiper

Share this post


Link to post
Share on other sites

Thanks for your help guys ..... I'll try that out. :)

So how can I expect the Bluefor bots to now 'capture' the Insurgent Officer? Will they chase him down?

Share this post


Link to post
Share on other sites

The AI will not chase him down, but you can script it so. You can use doMove, move, or MoveTo commands to have AI move to insurgent's position.

The Follow script written by Hoz would work very well:

http://www.ofpec.com/ed_depot/index.php?action=details&id=541&game=ArmA

You can add a trigger that senses when the chasing units are close enough to the insurgent, and then script the insurgent giving up.

All very doable, but requires a bit of scripting.

Share this post


Link to post
Share on other sites

Thanks guys ..... I'll try my hand at this and report back. :)

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  

×