OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CHEEKYBOY105 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. ???
-
Hang on for about 5 or 6 more hours, then OFPEC will launch completely and all the old scripts and things will be available.
-
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.
-
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
-
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...