Home   Help Search Login Register  

Author Topic: Aircraft Landing  (Read 1743 times)

0 Members and 2 Guests are viewing this topic.

Offline angusjm

  • Contributing Member
  • **
    • Virtual SAS
Aircraft Landing
« on: 09 Sep 2002, 19:04:50 »
Ok, I have an C130 that drops off paratroopers and then is supposed to go away.  But unfortuanatly the C130 lands at the airfield which you are assaulting which looks pretty stupid. I am only using MOVE waypoints.  How do you fix this?

Offline WhisperOFP

  • Members
  • *
  • I'm a llama!
Re:Aircraft Landing
« Reply #1 on: 09 Sep 2002, 19:09:13 »
Make a WP far over the sea so that the C130 get away, and once it reaches this WP, in the activation field, put :
deleteVehicle C130Name

This will work in v 1.75 Resistance

Offline angusjm

  • Contributing Member
  • **
    • Virtual SAS
Re:Aircraft Landing
« Reply #2 on: 09 Sep 2002, 19:26:36 »
I have done something similar with a this setdammage 1.0 that works, but the aircraft just lands then blows up.

DeusRich

  • Guest
Re:Aircraft Landing
« Reply #3 on: 09 Sep 2002, 19:40:00 »
give it an unload cargo wp - that causes a bug so it will fly straight away - over the sea and wont come back - quite funny actually...

Offline angusjm

  • Contributing Member
  • **
    • Virtual SAS
Re:Aircraft Landing
« Reply #4 on: 09 Sep 2002, 20:00:09 »
No such luck.

Offline WhisperOFP

  • Members
  • *
  • I'm a llama!
Re:Aircraft Landing
« Reply #5 on: 09 Sep 2002, 20:54:38 »
deleteVehicle doesn't destroy, it deletes. The C130 will simply... vanish :) Not a single sound, no flash, nothing...

Offline angusjm

  • Contributing Member
  • **
    • Virtual SAS
Re:Aircraft Landing
« Reply #6 on: 09 Sep 2002, 21:35:36 »
Yes, but the aircraft thinks that the WP means that it should land, so it lands then vanishes.

T.S.C.Plage

  • Guest
Re:Aircraft Landing
« Reply #7 on: 10 Sep 2002, 00:17:19 »
I think the units in the C130 are assigned with moveincargo and if you now make them jump the C130 still thinks these are "its" units and tries to get them back (a chopper will land straightly).

You've to use the assignascargo/unassign commands to get it working.

Example (initline leaderunit):

"_x moveincargo C130" foreach units group nameleader; "_x assignascargo C130" foreach units group nameleader


For the jump you've to make the units unassign the vehicle (the command is "UnassignVehicle unitname") but I'm not sure how it work's for a group!?!

I've named every parachuter and written a script with:

UnassignVehicle para1
para1 action ["eject",C130]
~1
UnassignVehicle para2
para2 action ["eject",C130]
~1
UnassignVehicle para3
para3 action ["eject",C130]
~1
...

Greetz
Plage
« Last Edit: 10 Sep 2002, 00:19:20 by T.S.C.Plage »

Offline WhisperOFP

  • Members
  • *
  • I'm a llama!
Re:Aircraft Landing
« Reply #8 on: 10 Sep 2002, 11:36:53 »
Yes, but the aircraft thinks that the WP means that it should land, so it lands then vanishes.

The aircraft lands when it has reached its last WP and has nothing more to do.
If you put your last WP far away in the sea, the aircraft will first go to this WP before coming back to land.
If in the on activation field of this WP, you delete the aircraft, it simply won't have time to go back, it will be deleted when the aircraft reaches this WP. To be sure, you can put 2 WP far away and delete the aircraft on the one before the last.

BTW, Plage remark is very true. You should first be sure that the aircraft doesn't try to get its cargo back, or it won't follow its normal WP :)

Whis'
« Last Edit: 10 Sep 2002, 11:39:03 by WhisperOFP »