Home   Help Search Login Register  

Author Topic: Simple Eject  (Read 1480 times)

0 Members and 1 Guest are viewing this topic.

CHEEKYBOY105

  • Guest
Simple Eject
« on: 02 Sep 2002, 20:17:09 »
Can someone help me I can't find a simple eject script to jump out of a plane like Marss C47.I just want them to a eject.A trigger would be easier so when the plane reaches the trigger  the people eject. ???

Offline KTottE

  • Former Staff
  • ****
Re:Simple Eject
« Reply #1 on: 02 Sep 2002, 20:20:52 »
Hang on for about 5 or 6 more hours, then OFPEC will launch completely and all the old scripts and things will be available.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

YankeeTanker

  • Guest
Re:Simple Eject
« Reply #2 on: 08 Sep 2002, 06:43:41 »
Her you go...

  I think Johann (the master) Gustafson.. wrote this:

 
 _Egrp = _this select 0
_Object = _this select 1
_freq = _this select 2
_Who = _this select 3

_GrpVektor = Units _Egrp
_numEl = count _GrpVektor
_i = 0

? (_Who == "PLAYER") : Player action["EJECT",_Object]; UnassignVehicle Player; exit

#Update
? (_Who == "AI") && ((_GrpVektor select _i) == Player) : _i = _i + 1
? (_i == _numEl) : exit
(_GrpVektor select _i) action["EJECT",_Object]; UnassignVehicle (_GrpVektor select _i)
_i = _i + 1
~_freq
? (_i < _numEl) : goto "Update"
exit

 
 Cut and paste.. and have at it

 
  'Load Sabot...Driver Move out'

   YankeeTanker.

zsa_zsa_rasputin

  • Guest
Re:Simple Eject
« Reply #3 on: 11 Sep 2002, 13:08:44 »
I noticed you had "SIMPLE" in your request...  ;)

It would be fairly easy to make a trigger the plane passes over or that activates under whatever condition with this in it's OnActivate line:

Unitname Action "Eject"

(Or similar (It's in the command reference which I dont have with me to read right now))

You can use it for single units or with a bit of fiddling you can order the whole group in the plane to eject

Dan  ;D

Marsuitor

  • Guest
Re:Simple Eject
« Reply #4 on: 16 Sep 2002, 21:49:20 »
You can use it for single units or with a bit of fiddling you can order the whole group in the plane to eject


How much fiddling does it take to get the group to eject instead of individual units?

Do you know how to do it?  :)
I'd love to know, as i'm overwhelmingly crap at scripting, and have been used to setting eject triggers unit by unit...