Home   Help Search Login Register  

Author Topic: Vehicle Transport  (Read 1572 times)

0 Members and 1 Guest are viewing this topic.

Offline The Unknown

  • Members
  • *
Vehicle Transport
« on: 22 Aug 2006, 15:30:58 »
Hello,

I am working on a mission where you got 2 island that dont have a bridge or someting connecting them.
Now I wanted to be able to transport hummers tanks apc and those tings in a c130 or some other bigger vehicle like a big boat.
The problem is I got no clue how to do this and I cant find any scripts to do it.

So does anyone know how to do this with scripts and so on.

Its not a demand that you see the vehicle when transporting it.

The Unknown

Offline 456820

  • Contributing Member
  • **
Re: Vehicle Transport
« Reply #1 on: 22 Aug 2006, 16:20:30 »
Well there is a script somewhere which allows transportation of vehciles in (well underneath choppers) maybe if osmeone has a link to it you could adapt it to work with your scenario.
Also maybe take a look at BAS Chinooks.

Offline The Unknown

  • Members
  • *
Re: Vehicle Transport
« Reply #2 on: 23 Aug 2006, 06:23:59 »
Took a look at that BAS Chinook

Result: nothing

Couldnt figure out how it worked.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re: Vehicle Transport
« Reply #3 on: 23 Aug 2006, 18:45:26 »
Don't have the necessarly time to write and test a script but i have an idea how to aproach.
It assumes that Cars/Tanks and Choppers are AI controlled.

Solution: 1 CH47D will transport multiple Vehicles from A to B

Fill an array with all vehicles that have to be transported.
Set a LZ where the vehicles has to be set by chopper (gamelogic or invisible H)
Maybe the use of nearestObject [tank1, "CH47D"] might be helpful to see if chopper is close to a vehicle.
As soon the chopper is over a tank and low enough, setpos the tank with a really short loop right under the choppers position.
When arriving at the LZ and as soon chopper has descended to a acceptable flight level, exit the setpos loop, and the tank will be where you wanted.
repeat this for each vehicle or use multiple choppers.

As said, my scripting knowledge isn't good enough to work this out in a acceptable short time, but this would be my approach to this problem.

For sure the scripting heroes in here will point out a few errors in my idea and lead you a better way, but maybe it pushes you in a right direction to investigate  :D