Home   Help Search Login Register  

Author Topic: Keeping pilots from ejecting  (Read 398 times)

0 Members and 1 Guest are viewing this topic.

Offline Nemesis6

  • Members
  • *
Keeping pilots from ejecting
« on: 08 Mar 2005, 22:21:08 »
I've tried a lot of things to keep pilots from ejecting when their aircraft gets a curtain ammount of damage, nothing have worked. Now I'll ask here... can anyone help me with this?
I am actually flying into a star... this is incredible!

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Keeping pilots from ejecting
« Reply #1 on: 08 Mar 2005, 22:50:24 »
question is, why do you want them to do what they would do normally in reality? loons are sometimes idiots, but rarely suicidal.

you want them to go down with the chopper? create a script which deletes the pilot and gunner when the chopper in question gets to that non-flyable stage. presto. no parachutes, just one broken chopper. splat. :)

EDIT - better yet, use a trigger, as there doesn't seem to be an event handler for damaged vehicles, only loons.
« Last Edit: 08 Mar 2005, 22:52:51 by bedges »

Offline Flauta

  • Members
  • *
  • There is no knownledge, that is no power
    • Chek mi FLog
Re:Keeping pilots from ejecting
« Reply #2 on: 08 Mar 2005, 23:03:15 »
well, I thoght when the pilots auto-Eject themselves, is because the Chopper/Plane Suddenly Shut-off, if you try to start them again you cant, thats because it got a Engine Dammage or something... but what you are looking for is to wach your chopper fall whit the pilot inside... no idea  :-\
ave you tryed whit MoveinDriver command?
something like these:
Code: [Select]

_chopper = this select 0
_Gunner = gunner _chopper
_driver = driver _chopper

#begin
? ! (_gunner in _chopper) : goto "Movegunner"
? ! (_driver in _chopper) : goto "Movedriver"
? ! (alive _gunner) and ! (alive _driver) : goto "exit"
? ! (alive _chopper) : goto "exit"
~0.025

goto "begin"

#Movegunner
_gunner moveingunner _chopper
goto "begin"

#movedriver
_driver moveindriver _chopper
goto "begin"

#exit
exit

What you think?
im not experienced on scripts.. but i think this will work.. if it is possible to "moveinriver"/"moveingunner" when the Helo is deactivated...

Salute!

Offline Nemesis6

  • Members
  • *
Re:Keeping pilots from ejecting
« Reply #3 on: 09 Mar 2005, 19:48:53 »
I fixed up the script you made, it works, problem is - the pilot doesn't want to stay there. He keeps ejecting...
I am actually flying into a star... this is incredible!

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Keeping pilots from ejecting
« Reply #4 on: 09 Mar 2005, 20:12:33 »
if you clarify the purpose of what you're trying to achieve, maybe we could be of more help...