Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Emetivore

Prevent enemy from targeting insertion/extraction helicopter

Recommended Posts

Hi all, I have a question about making a helicopter untargetable by the enemy.

Before you leap for your snark hammers, let me just say that YES, I have searched for it. OK, let's get on with the discussion now.

So, I have a UH-60M MEV chopper (named HeliMEV) that picks up the players and drops them off at the edge of an already-active battle. Everything has been working perfectly every time, and I just added the enemy units to the map. The problem is, despite the fact that there are dozens of friendly units right in the enemy's face, they decide instead to all target the chopper. This causes the chopper to behave erratically, land in the wrong spot, get shot down, land with wounded squadmates, etc. Since the chopper is mission-critical and players don't even have control over it (the AI is piloting), I don't want anything bad to happen to the players (or the chopper) before the mission has even really started.

My research led me to put these scripts on the HeliMEV chopper init:

this allowDamage false; this allowFleeing 0; camouflage = 0; audible = 0; accuracy = 1000;

However, none of them really work. The allowFleeing command seemed to help, but the chopper still behaves differently than it did before I added the enemy units. Camoflage, Audible and Accuracy should each make the chopper untargetable, but none of them seem to work.

So, based on my previous search (!!!), my questions are:

1. Am I using these commands correctly, or is there a syntax error here?

2. Is there another/better/easier way to prevent the enemy from targeting the chopper and the soldiers inside it?

Thanks!

*Edit: Solution found!

thinking outside the box, I tried setCaptive on the copter and it worked. I wonder where they put the handcuffs?

Edited by Emetivore

Share this post


Link to post
Share on other sites

In simplest form, you could try setting the choppers/pilots side to resistance & setting resistance friendly to all. Also try setting the choppers waypoints to careless. In any case, I'm sure there is a "notarget" function your after somewhere. You could also disableAI for the entire enemy side until you're ready for the mission to begin. Or use setcaptive. Or, you could create the bad guys after insertion. Hope any of this helps, or you find what functions you need.

regards,

Iceman

Share this post


Link to post
Share on other sites
Sign in to follow this  

×