Home   Help Search Login Register  

Author Topic: Unit eject from plane  (Read 570 times)

0 Members and 2 Guests are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Unit eject from plane
« on: 28 Nov 2003, 23:43:49 »
How do I get a unit or units to eject from a plane like they are para dropping.
Cheers
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

deaddog

  • Guest
Re:Unit eject from plane
« Reply #1 on: 28 Nov 2003, 23:45:35 »
Easy, go get one of the scripts from the editors depot.  There are a couple that handle that.


Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Unit eject from plane
« Reply #2 on: 29 Nov 2003, 01:34:36 »
No, no, no. I need the command for a trigger which tells all units in cargo to exit plane. Like if I pressed eject on my mouse if i were a unit myself. I want the plane to be flying along, hit my trigger and empty all the para troopers.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

deaddog

  • Guest
Re:Unit eject from plane
« Reply #3 on: 29 Nov 2003, 04:15:33 »
You're Welcome.  ::)

Monkey6014

  • Guest
Re:Unit eject from plane
« Reply #4 on: 29 Nov 2003, 05:43:15 »
yea check it out, there are very easy ejecting scripts that do exactly what you want out of them.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Unit eject from plane
« Reply #5 on: 29 Nov 2003, 10:25:21 »
sorry deaddog I do appreciate your help, only I'm looking for a command not a script. Something to go in a trigger so when I hit it, it empties the plane of all passengers but obviously not the crew.
If I knew the command I would go to the command lists in the Editors Depot, but then I'd already know so I wouldn't. Erm... ???
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

m21man

  • Guest
Re:Unit eject from plane
« Reply #6 on: 29 Nov 2003, 10:49:38 »
Use a script that executes from the trigger.

deaddog

  • Guest
Re:Unit eject from plane
« Reply #7 on: 29 Nov 2003, 14:05:59 »
I could have explained myself better :)

There is no single command to eject the whole group, unfortunately.  You can do this to eject one unit:

unitname action ["eject", vehicle unitname]
unassignvehicle unitname (very important, this part)


Now you see why you need a script.  But the whole thing is pretty easy.  And like m21man says, just execute the script from the trigger.  Just remember to make the trigger fairly large (at least the default 50 meters) because a trigger only checks itself every .5seconds.  A fast moving plane/heli could potentially fly through trigger before it sets it off.

This is the classic eject script:

http://www.ofpec.com/includes/download2.php?id=114

Your activation line of the trigger should be:

[groupname,vehicle groupname] exec "groupeject.sqs"