Home   Help Search Login Register  

Author Topic: Damn airlift  (Read 570 times)

0 Members and 1 Guest are viewing this topic.

BrAinOfJ

  • Guest
Damn airlift
« on: 09 Apr 2004, 16:43:14 »
I need a little help with code.

Ive tryed most, if not all the scripts about airlifts or helicopter transport, but none of them work right, or with AI at the controls. I simply need a helicopter to carry a ground vechile to a waypoint, then release it and fly away. I dont need it to pick it up, or drop it with a parachute, or anything flash. Just a simple getpos helo, setpos vehicle.
A simple flow of what i need...

getpos helo (XYZ); setpos vehicle (XY Z-3)... helo follows waypoints, waypoint near drop point will have "helo FlyInHeight 5" then the vehicle is released, men walk towards it, get in, intro ends...

Should be simple enough, but when coding it myself, i cant get the damn vehicle interested in sticking to the bottom of a chopper....

p.s. Its for an intro, hence the ai control
« Last Edit: 10 Apr 2004, 09:45:38 by BrAinOfJ »

Offline SilentHunter

  • Members
  • *
  • frozen leg'o'lamb (every gamers most loved weapon)
Re:d**n airlift
« Reply #1 on: 09 Apr 2004, 18:56:35 »
Your script should look somthing like this...

Code: [Select]
#top
? (chopper distance (getmarkerpos LZ)) < 8 : exit
vehicle setpos [(getpos chopper select 0),(getpos chopper select 1),(getpos chopper select 2)-4]
~0.01
goto "top"

thats how i would do it anyway,

however it is possible to script the whole cutscene, it would be more effichant, (and its how all the pros do it so it must be good ;))

If you post a copy of the cut scene here i could help you out by scripting the whole thing
« Last Edit: 09 Apr 2004, 18:57:12 by SilentHunter »
[size=4.5]NERDS HAVE FEELINGS TOO! [/size] [size=2.5]*adjusts glasses*[/size]

BrAinOfJ

  • Guest
Re:d**n airlift
« Reply #2 on: 10 Apr 2004, 09:45:14 »
I scripted a whole helicopter training tutorial, it was painful and tedious, i found that i could achieve a similar result by using more basic editor functions, combining them with scripts for any complex moves, like helo pop ups from cover and so forth...

But anyway, thanks for the code, im gunna go give it a try now, ill report back on the outcome :)

The Helipilot

  • Guest
Re:d**n airlift
« Reply #3 on: 11 Apr 2004, 01:30:00 »
Hi !

I'm also working on helicopters, see my post on "missions ideas" forum...and maybe we can do something together...

see ya !