Jump to content
Sign in to follow this  
Fernsie

Help with creating an air assault mission

Recommended Posts

Hi guys, this is my first post. I've been creating many missions in the editor by mainly placing units and waypoints. I've done very little scripting as I'm not that experienced with it.

I've created a mission where I have four squads of troops board MH-60s which ferry them to an LZ where they unload and proceed to their next waypoints. This all works pretty well until I place the enemy in. Not right in the LZ mind you, but close enough they can still take potshots with rifles.

After the choppers take any sort of fire they refuse to land and will often just hover over the LZ.

So my question is, how can I make the choppers land at their waypoint after they have taken enemy fire?

Thanks in advance,

Fernsie

Share this post


Link to post
Share on other sites

You can try adding this in the chopper's init line:

(driver this) setBehaviour "CARELESS";

If that doesn't help,

(driver this) setBehaviour "CARELESS"; (driver this) disableAI "TARGET";

I'm not sure this will work, but it's worth a try.

Edited by dupa

Share this post


Link to post
Share on other sites

I find a good way is using "domove" and "flyinheight" combined with

{_X UNASSIGNVEHICLE}  foreach units troops;

Troops being the name of the group your guys are in.

so

chopper domove (getmarkerpos "waypointmarker");
chopper flyinheight 0.2;
{_X UNASSIGNVEHICLE}  foreach units troops;

Works for me, when this instruction is executed the chopper will ignore whatever it's doing and fly to the marker at 0.2 then the troops will get out.

Share this post


Link to post
Share on other sites

Thanks guys!

I'll give those a go.

---------- Post added at 11:26 PM ---------- Previous post was at 11:24 PM ----------

Actually TechnoTerrorist I'm not sure where to paste that code. As I said I'm very inexperienced with scripting?

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  

×