OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Ryu on 07 Jan 2006, 14:19:49

Title: forced eject
Post by: Ryu on 07 Jan 2006, 14:19:49
Does anyone know how to force a player to eject from the pilot seat of a jet in a cut sceen?
I want the pilot (player) ejected before the plane gets blown out the sky :)

I tried using eject action and unassigning the player from vehicle and I tried the scripts that are available but nothing works to force the pilot and gunner who are players to eject.

Any ideas?
Title: Re:forced eject
Post by: yankme on 07 Jan 2006, 15:08:12



http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_4&start=25
Title: Re:forced eject
Post by: Ryu on 08 Jan 2006, 01:49:10
As I said I tried scrips, they work fine to eject a group in cargo but I only got 1 script to work and only once :( It wouldn't work again.
Title: Re:forced eject
Post by: penguinman on 08 Jan 2006, 03:58:09
it should work if you just put.

player action ["EJECT", name of jet]

Infact I just used it earlier today and it worked fine.

but, if the jet is an addon and has a fancy ejection script, then it may cause problems.

what kind of jet is it. who made it.

you may need to go in the addon by depboing it and look at the ejection script, then you can just call it using a trigger,

[jet1] exec"INQ_A10/scripts/ejectionseat.sqs"

somthing like that,

good luck