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

Newbie help with mission editing

Recommended Posts

Hello all,

I did a search, but couldn't quite find what I needed.

In my mission, I have an MI-17 dropping off a squad of Soviet soldiers. This is the script I am using for loading the squad:

"_x assignascargo heli2" foreach units aigrp;"[_x] ordergetin true" foreach units aigrp

heli2 is the chopper, aigrp is the squad of soldiers.

My question is, after the soldiers are dropped off and the chopper leaves, my guys kinda sit there and don't do much. How do I give them orders as a seperate entity? I've tried assigning them waypoints, but when I do that, before the board the chopper, they just start running to the waypoint! lol

Thanks very much in advance!

Hawk

Share this post


Link to post
Share on other sites

Two ways: (i recommend the 2nd one)

1 .if the group has no waypoint before they are to board the chopper, then put a waypoint ontop of the leader, then in the condition type:

waitforit

then put this into the end of getout or the script to make the the soldiers leave the chooper

waitforit=true

so if you had it in the getout onactivation field it MIGHT read something like this:

aigrp setbehaviour "combat";waitforit=true

of course you may not have the first part but its just an example.

if the group has waypoints before they enter the chooper put the same code (waitforit) into the condition field off the waypoint BEFORE they enter the chooper. (or ebven better put a waypoint on top 0f the chopper then put it in there!wink.gif

2. If that doesnt work/is to confusing then put this into the activation field of the groups LAST waypoint before they enter the chooper or at the start of your script/code:

aigrp lockwp true

then at the end of the script or getout onactivation put:

aigrp lockwp false

Hope this helps With your problem

p.s Welcome to da forums!

8) PEACE

Share this post


Link to post
Share on other sites

Thanks much for the reply, and the welcome to the forums!

Hope to be around much more.

Thanks again,

Hawk

Share this post


Link to post
Share on other sites

Yep, works great!

Thanks again for the help!

Hawk

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  

×