Home   Help Search Login Register  

Author Topic: choppers situation  (Read 448 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
choppers situation
« on: 10 Jul 2003, 06:23:16 »
I have a situation where I have a chopper with no waypoints and some guys (including a civialian) get in it without waypoints.  This is a evac chopper rescuing hostages (three resistance soldiers and a civialian).  Waypoints will not work in this situation because the interaction with the hostages and the mission does not call for waypoints.  

I want to know how to get that chopper to behave properly with the script setup (see attached).  

The problem with this current script attachment is that "even" when everyone is on board, the chopper will not fly away how do I get this right ??? I did get it to fly away before, but if I did it that, the fleeing of the civialian (the civialian running all over the place, maybe running for the chopper) conflicted with the choppers behavior and caused it to crash.  I tried getting the civilian to stop true but this causes even more problems (too many to say).  I really don't have a problem with the civialian fleeing, I think it looks good myself.  I just want that chopper to take off once everyone is on board.  

There is a chance (not probable, but could happen, and then again, might not happen at all) that the chopper will not land properly at some runs of the mission and flip over or crash.  If you could help me find this fluke too (if it is there),  :)I would really appreciate it.  

My scripts are attached in the zip file.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:choppers situation
« Reply #1 on: 10 Jul 2003, 11:07:26 »
 :D Hey man!

Instead of all this...@Unitready stuff, why not try this:

If the slope is too steep for choppers to land on, try a low "flyInHeight".  :)
Put the bird somewhere, remove its fuel or whatever to make her wait on ground.
Then when she's supposed to fly in & rescue yer d00ds, setFuel 1 and use a regular MOVE wp to the rescue spot.
Make her behaviour "careless" and combatMode "never fire".

Then use a command in that WP:

Bird flyinheight 1

which will skip the danger of seeing her trying to land 10 miles away
trying to avoid steep slopes or buildings when landing...  :P ;D

And just put a condition in that WP, so that she won't move any further before the d00ds are in cargo.

cond:
"_x in bird" foreach resc

activ:
bird flyinheight 60; bird move getpos home

( just define that array in someones INIT field or alike: Resc=[r1,r2,r3] )

And make 'em move to her WP (or a gameLogic below her wp),
then let them get in or simulate it by letting them do a few animations + a moveInCargo.


play around with it & see if you can get it to work, m8  :)

gadolinite

  • Guest
Re:choppers situation
« Reply #2 on: 10 Jul 2003, 22:01:43 »
 ;)sounds good, Dr. Tomb

gadolinite

  • Guest
Re:choppers situation
« Reply #3 on: 11 Jul 2003, 00:50:24 »
 :-\here is my final working script (resembles one I also have attached for a previous mission project I did).