Home   Help Search Login Register  

Author Topic: I want to STOP my AI pilots from ejecting...  (Read 917 times)

0 Members and 1 Guest are viewing this topic.

LargePiece

  • Guest
I want to STOP my AI pilots from ejecting...
« on: 02 Sep 2003, 05:02:46 »
Does anyone know how to stop AI pilots ejecting from a damaged chopper? I would like my two buddies pilot1 and pilot2 to go down WITH their chopper and not just bail because it's about to crash...

The whole idea that someone can eject from a chopper that's spining madly and in the process of crashing is just plain silly!!  Not to mention the fact that I've never seen anyone in a helicopter carrying a parachute to start with (I'm drawing my conclusions here from popular movies, the basis for any good education).

Putting aside my concerns about realism in the mission in question, I simply don't have room for two AI chopper pilots running around on the ground and mucking up the delicate balance of my mission. :)

Knut Erik suggested in another post that I lock the door of the chopper to stop them from ejecting, but unfortunatley the chopper pilots seem to have magical door unlocking skills and despite my adding the line: slick1 lock TRUE. they still seem able to eject.

Does anyone out there know of any other solutions to my problem?  Is no one else bothered by chopper pilots having parachutes!!!!! I mean HONESTLY....

I really need to get out more...

 :-\
« Last Edit: 02 Sep 2003, 05:07:36 by LargePiece »

laulau

  • Guest
Re:I want to STOP my AI pilots from ejecting...
« Reply #1 on: 02 Sep 2003, 07:52:03 »
well just an idea to solve your problem:
make your pilots dying when your chopper gets a certain ammount of dammage before they jump out of the chopper.

so use a script like this one:

Quote
_Unit1= _this select 0
_Unit2= _this select 1
_Chopper= _this select 2

#check
?(_Chopper getDammage > 0.7) : goto "dying"
goto "check"

#dying
_Unit1 setDammage 1
_Unit2 setDammage 1
exit

use a trigger as big as the area where you chopper's flying and in the "On Activation" field type:

[pil1, pil2, helo] exec "dying.sqs"

"pil1" is the name of the first pilote, "pil2" is the name of the second one and "helo" the name of the chopper. "dying.sqs" is the name of your script.
i didn't try it but it should work. Adjust this line ?(_Chopper getDammage > 0.7) : goto "dying" to put the right value of dammage (0=no dammage, 1=maximum dammage)

hope this help...

Offline Ottie

  • Members
  • *
  • And you think this is personal
Re:I want to STOP my AI pilots from ejecting...
« Reply #2 on: 02 Sep 2003, 17:11:11 »
Maybe you can force the pilots to stay in there position with the fleeing command, for infantry there is this command allowFleeing and if it is false the units will not flee even when in danger maybe this also works for chopper pilots ......
« Last Edit: 02 Sep 2003, 17:11:44 by Ottie »
If you can't beat them, buy them

Robinhansen

  • Guest
Re:I want to STOP my AI pilots from ejecting...
« Reply #3 on: 05 Sep 2003, 21:54:15 »
I tried the script but I get an error message: Error Unknown operator getDammage ??? What can I write instead?? Instead of using a chopper I use an A10 (I've got four of them, named Plane1, plane2 etc...) ::) ;D

Offline KJAM

  • Contributing Member
  • **
  • Why Me, Whats it For?
    • Nightstalker mod
Re:I want to STOP my AI pilots from ejecting...
« Reply #4 on: 05 Sep 2003, 21:59:22 »
have you tried locking the vehicle in the edit uitmenu.......im sure ive seen that work before

Robinhansen

  • Guest
Re:I want to STOP my AI pilots from ejecting...
« Reply #5 on: 05 Sep 2003, 22:39:18 »
Nope...stil the same error message... >:( >:( >:(

Offline KJAM

  • Contributing Member
  • **
  • Why Me, Whats it For?
    • Nightstalker mod
Re:I want to STOP my AI pilots from ejecting...
« Reply #6 on: 05 Sep 2003, 22:40:56 »
try locking the aircraft but DO NOT use the script see if that works

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:I want to STOP my AI pilots from ejecting...
« Reply #7 on: 05 Sep 2003, 22:45:29 »
da script is good thing but deres 1 eror in it  ::)

dis line

Quote
#check
?(_Chopper getDammage > 0.7) : goto "dying"
goto "check"

shud b like dat

Code: [Select]
#check
?(getDammage _Chopper > 0.7) : goto "dying"
~0.1
goto "check"

LCD OUT
« Last Edit: 05 Sep 2003, 22:45:59 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Robinhansen

  • Guest
Re:I want to STOP my AI pilots from ejecting...
« Reply #8 on: 07 Sep 2003, 19:02:01 »
Well the script does'nt quite work for me. Here's the story: I used an ampty A10 and called it plane1- then I placed a pilot next to it - called him pilot1. In the pilots init field I used the "pilot1 moveindriver plane1" command. I used four planes and four pilots. Naming them from 1-4...BUT THE DAMN PILOTS ARE STILL EJECTING FORM THE BLODDY PLANE >:( >:(  Are the script totally wrong or am I a complete idiot (don't have to answer the last sentence ;))

Offline KJAM

  • Contributing Member
  • **
  • Why Me, Whats it For?
    • Nightstalker mod
Re:I want to STOP my AI pilots from ejecting...
« Reply #9 on: 07 Sep 2003, 19:31:04 »
like i said, in the edit menu change the vehicle thing to LOCKED and it will work, they cant get out then

KyleSarnik

  • Guest
Re:I want to STOP my AI pilots from ejecting...
« Reply #10 on: 07 Sep 2003, 20:32:38 »
Or when you want to lock it use this in an
 activation feild:

Code: [Select]
plane1 lock true
 :oAnd then they are trapped in the when it goes down plane.... lol  ;D ::) :P
« Last Edit: 07 Sep 2003, 20:33:20 by KyleSarnik »