Home   Help Search Login Register  

Author Topic: Evacs made easy....maybe?  (Read 1485 times)

0 Members and 1 Guest are viewing this topic.

SEAL84

  • Guest
Evacs made easy....maybe?
« on: 04 Sep 2002, 04:10:56 »
Hmmm.....I think I have a new, simple way of structuring an evac...check it out and tell me what's what here.

I was having a little fun whipping up quick chopper insertions/extractions on STT's Ia Drang island, and was having fits with the one problem that always manages to screw with me - actually getting extractions to work.  I have tried several missions involving chopper exractions and that was always a stumbling block.

I *think* I may have found an easy solution to it, finally.  I do have my doubts though.

I had a squad of Air Cav guys, labeled guy through guy3.  They have a generic "move" wp where the chopper will get them.  NOTE - I'm not the squad leader.

The chopper's name is Huey and it flies to a "load" wp, with [huey land "get in", huey lockwp true] in the on activation field.  It's other waypoint is off somewhere else.  The Cavalry unit's wp has ["_x assignascargo huey" foreach units group guy].  Rather than try syncing and load/get in wp's, I tried this.    

Then I set up four triggers, one for each man in the Cavalry squad.  In all their conditions is [guy in huey], all named sequentially.  In the on activation field I pasted [huey lockwp false] in all four of the triggers.  Now this seems too simple and too easy to me, but it works like a charm.  I wonder though...

Why couldn't I stick all the condtions in one trigger?  It didn't seem to get it when I said [guy in huey and guy1 in huey and guy2 in huey and guy3 in huey] all in one trigger, but without the brackets there.  Now all four of them check for the same thing, I guess.

Will this method NOT work if one of the guys is dead, or will OFP automatically throw out the condition since the guy is no longer among the living?

I'm reasonably sure that if I was the leader and ordered in the guys as the chopper sat there, the triggers would still have the same effect and everything would work the same way.

Am I missing something, or is it that easy?  I had to post this because the art of taming choppers has been beyond me for months, plus it seems a lot easier than a script I downloaded a while back that does the same thing, only with 3x as much work put into it.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Evacs made easy....maybe?
« Reply #1 on: 04 Sep 2002, 07:07:09 »
Hmm... it's not too hard provided you don't overcomplicate things huh? ;)

I've never had any huge problem with chopper insertions/extractions, but I haven't used them that much...
However here's a few things I do know that some people may not:

Heli land "X"

There are a lot of misconceptions about the land command running around... when I use these (I'd rather use waypoints if at all possible), here's how I generally do it:
  • Heli land "get in"
    This is used when picking up troops (duh ;D). The trick is to assign troops as cargo before you issue the chopper with the land command. Then the chopper will wait until all units assigned to it are aboard (or confirmed dead) before going anywhere
  • Heli land "get out"
    Use this when unloading troops. Unassignvehicle _x all your troops that you wish to disembark before issuing the land command. Then the chopper will wait until all troops disembarking are out of the chopper (or confirmed dead) before taking off again
  • Heli land "land"
    Unconditional land command. The chopper lands and stops it's engine (if left long enough). I don't often use this command, as normally loading and unloading are the only times I want the chopper on the ground.
Also remember when you issue a land command, the chopper will look for the best spot it can see (in otherwords, a spot 2km in the wrong direction) to put down in. Unless you put a helipad (it can be invisible) where you want it to land. For dynamic scripted insertions/extractions, I find it easiest to createvehicle an invisible helipad where I want the chopper to land

Sync'ed Get In/Load Waypoints

I advise caution when using these... the thing to remember is that the infantry group at the get in waypoint must have hit the waypoint before the chopper hits it's load waypoint. Otherwise the chopper may fly straight past the load waypoint (as there is nothing to pick up... the infantry hasn't been told to get in yet) and you won't get your guys loaded. It sometimes happens that way ;)

Transport Unload Waypoints

These things are great. They get the chopper to land, and unload every unit riding in cargo (the exception being if the player is controlling the squad). No syncing to mess things up... simplicity means there are less things that might go wrong ;)

Chopper wait conditions

Sometimes you want to type something in the condition field of your choppers waypoint to get it to wait...  here are a couple I often use:
  • count crew heli < 3
    A condition to cause a chopper to wait for it's cargo to disembark.
    With this one remember that it is crucial that the pilot and gunner can't be killed. If it is at all possible that they can, you should use something else
  • count crew heli == (west countside (units group) + 2)
    A condition to cause a chopper to wait for all living units in group to be aboard. Again, this relies on the driver and gunner always being alive. Also, if your group is not west, change the west to what is applicable (east, civilian etc)
I generally find that the simpler the better. Simpler means there are less things to go wrong, and there are generally enough things chopper can do by themselves to screw things up (they fly worse than I do ;D)
« Last Edit: 04 Sep 2002, 07:10:55 by Sui »

Kaliyuga

  • Guest
Re:Evacs made easy....maybe?
« Reply #2 on: 04 Sep 2002, 07:11:08 »
Why couldn't I stick all the condtions in one trigger?  It didn't seem to get it when I said [guy in huey and guy1 in huey and guy2 in huey and guy3 in huey] all in one trigger, but without the brackets there.  Now all four of them check for the same thing, I guess.


Cool idea.. the only thing I have to add about putting all of them in one trigger is that I think the correct syntax for that command above should look something like this:

((guy in heuy) and (guy1 in huey) and (guy2 in huey) and (guy3 in huey))

not sure how one of em dying would effect this though since the condition will only be met when they're all in as far as I know

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Evacs made easy....maybe?
« Reply #3 on: 04 Sep 2002, 07:21:53 »
Try:

"_x in heli" count [guy1,guy2,guy3,guy4] == "alive _x" count [guy1,guy2,guy3,guy4]

Also, if you decide to use more units (or a whole group) you can easily add them into the two arrays...