OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: silent_64 on 10 Jul 2003, 20:29:14

Title: Takeoff time
Post by: silent_64 on 10 Jul 2003, 20:29:14
Like the DKM Havoc, I've got a chopper that needs to start up slow, but the problem is that in OFP you can takeoff with a chopper after around 18 sec. and that is way to fast... So is there a way i can deside how long it takes to start up the chopper, or how can you make the turbines start like on the DKM's Havoc?
Title: Re:Takeoff time
Post by: Artak on 10 Jul 2003, 21:28:38
Must be a build in feature in the Havoc.. never seen it though so I can't say.

Maybe you'd be able to create somekind of a script that simulates it  :-X
Title: Re:Takeoff time
Post by: silent_64 on 10 Jul 2003, 22:49:53
Yes it is a script in the Havoc, but it animates a hole lot of stuff while it starts up, i don't need that i just need the chopper to start up a bit slower eg. A delay from when you press "Engine on" to the rotors start spining.

So yes you can create a script that simulates it but I have no knowed about that kind of scripting.
Title: Re:Takeoff time
Post by: Artak on 11 Jul 2003, 00:51:02
I just experimented with the ever lovely setvelocity  :D

#loop
~0.1
?(player == driver ah1): ah1 setvelocity [0,0,-1]
goto "loop"

It's certainly not pretty, but it gives somewhat the effect you're looking for. Here's how I tried it as an attachment. Board the chopper and give it all she's got scotty.

If that looks ok to you we can start thinking how to end the script  8)

/me stays back and waits for someone smarter think a better way to do it
Title: Re:Takeoff time
Post by: silent_64 on 11 Jul 2003, 01:00:26
Hmm... I don't see how it afects the whole start up procedue... Maybe I'm just over looking something
Title: Re:Takeoff time
Post by: Artak on 11 Jul 2003, 01:16:01
hehe no you're not. It doesn't make the rotor spin any slower to reach the maximum thrust. Only thing it does is that it prevents the chopper from taking off, no matter it the pilot pushes the 'upwards' button.

I'm just feeding peanuts to your brains, so that you might come up with something nicer than this  ;)
Title: Re:Takeoff time
Post by: Kaliyuga on 11 Jul 2003, 03:44:12
 yeah.. Its a built in feature that makes it take oh say... five minutes to start that sucker up  :P  

seriously not that long.. but you can climb in... fire it up and go fix yourself a nice drink before take off.. no pausing of the game needed..

you could make a simple script that simulates the part of that you need by removing all the fuel from the bird.. as this is what they have done to make it take all afternoon to get those rotors spinnin  ;D

you could make a script that detected when the player got in the chopper.. and took all the fuel away... then waited however many minutes/seconds/days  you wanted to give you your fuel back so you can take off  ;D
Title: Re:Takeoff time
Post by: silent_64 on 11 Jul 2003, 09:48:20
you could make a simple script that simulates the part of that you need by removing all the fuel from the bird.. as this is what they have done to make it take all afternoon to get those rotors spinnin  ;D

you could make a script that detected when the player got in the chopper.. and took all the fuel away... then waited however many minutes/seconds/days  you wanted to give you your fuel back so you can take off  ;D

That's what we're looking for! But it would first need to take away the fuel on startup, so the engine start sound would be played.