Home   Help Search Login Register  

Author Topic: Squad automatic exit from chopper?  (Read 1302 times)

0 Members and 2 Guests are viewing this topic.

SneakyPete

  • Guest
Squad automatic exit from chopper?
« on: 20 Apr 2005, 11:24:52 »
How can I make my squad automatically get out of a chopper when it lands?

I get out and they all sit there waiting for me to order them out, and when I do order them out I have order them into formation again.

I'm fed up of shooting them for their insubordination  ;D


Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Squad automatic exit from chopper?
« Reply #1 on: 20 Apr 2005, 11:32:13 »
What insubordination?  Now if they got out without you telling them that would be insubordination.

try:

unassignVehicle unitname

You should also look at the:
orderGetIn false
and
allowGetIn false

instructions
« Last Edit: 20 Apr 2005, 11:41:45 by THobson »

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Squad automatic exit from chopper?
« Reply #2 on: 20 Apr 2005, 13:13:01 »
Depending on whether you're starting in the helicopter or in and out of vehicles through the mission, experiment with a trigger:

Condition: Vehicle player == player
Timeout: a few seconds
On Activation: {UnassignVehicle _x; _x DoFollow player} Foreach Units Group player

When you get out, they should too and then get into formation.

Add to On Activation:
(Units Group player) OrderGetIn false
if necessary.

You could also use the height of the chopper as the trigger condition if you don't want them to wait for you.

SneakyPete

  • Guest
Re:Squad automatic exit from chopper?
« Reply #3 on: 20 Apr 2005, 13:45:52 »
Nice one ACF, thats what I'm after.

I take it _x is heliname and group name???

How does the height thingy work as it would be cool for them to jump out first when nearing the ground.

oh and THobson your're right insurbordination is the wrong word, Common sense would be more appropriate  ;)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Squad automatic exit from chopper?
« Reply #4 on: 20 Apr 2005, 14:09:52 »
_x is neither the group name nor the chopper name.   Look up the forEach and unAssignVehicle commands in the command reference.    

Never, ever try to lift something from the forum and drop it into your mission without understanding what you are doing ... unless of course you like being cross and frustrated.
Plenty of reviewed ArmA missions for you to play

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Squad automatic exit from chopper?
« Reply #5 on: 20 Apr 2005, 14:19:34 »
Noooo - leave the _x as is; look up the ForEach command in the command reference.

The trigger as I've written it doesn't need the heli name or the group name.  Basically, when the player is not in a vehicle (in Flashpoint terms a man is a vehicle, too, so we're looking for when HE is in himself, not the chopper) each unit in the player's group is given the UnassignVehicle command, then the DoFollow.  The '_x' is the variable that takes the value of each group member.

To use the height, try a condition of:

((GetPos heliname) Select 2) > 3

or, to build on what we had before:

((GetPos Vehicle player) Select 2) > 3

Because 'Vehicle player' and 'heliname' refer to the same unit.

GetPos gives an [x,y,z] position coordinate.  The third element of the array: z, counting from 0, is extracted by array Select 2 - this is the height above ground level.  Again, it will be screwed up if the helicopter is on the ground at the beginning of the mission.

Experiment and use the command reference - they're the tricks.

SneakyPete

  • Guest
Re:Squad automatic exit from chopper?
« Reply #6 on: 20 Apr 2005, 14:22:07 »
So much enthusiasm and so little understanding.  :-[

A bad combination.

SneakyPete

  • Guest
Re:Squad automatic exit from chopper?
« Reply #7 on: 20 Apr 2005, 14:24:23 »
Thanks ACF.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Squad automatic exit from chopper?
« Reply #8 on: 20 Apr 2005, 16:12:11 »
Lol don't worry we all started like that.   The good part is that they are proportional:  as one increases, so does the other.   ;)
Plenty of reviewed ArmA missions for you to play

SneakyPete

  • Guest
Re:Squad automatic exit from chopper?
« Reply #9 on: 20 Apr 2005, 16:22:03 »
The sad thing is I haven't just started, more of re-kindled my love affair with ofp.  

This time I'm determined to create something decent and submit it.

Its so bad this time around even the wifes complaining.  :help:
« Last Edit: 22 Apr 2005, 23:18:21 by SneakyPete »