killbox90 0 Posted September 10, 2002 Does anyone have a script for airlifting vehicles... ex: Taking a Chinook and picking up a hummer with it. My friend had one, but he couldn't get it to work. Share this post Link to post Share on other sites
aphelion79 0 Posted September 10, 2002 Yes I remember someone made a script where you could In-Game pick up vehicles etc... does anyone know where I could get this again? Share this post Link to post Share on other sites
beno_83au 1369 Posted September 10, 2002 Use the search or go to OFP Editing Centre and look in their "Editing" section for a tutorial, there's probably one there. Share this post Link to post Share on other sites
killbox90 0 Posted September 10, 2002 Your link didn't work, but i got to the site anyway. Thanks for the info. Share this post Link to post Share on other sites
aphelion79 0 Posted September 11, 2002 Ok I found some stuff, but problem is these are hard scripted... the one I saw before you could actually take off with a chinook for example, fly over a jeep (all in real time! Action > Connect Vehicle and the thing would connect and u could raise altitude and fly it around, untill u wanted to drop it off you lowered Action > Disconnect Vehicle and it dropped off ... simple transportation... was a very neat idea... anyone know who made it or ANYTHING about it? Share this post Link to post Share on other sites
aphelion79 0 Posted September 12, 2002 Anyone have any ideas? Share this post Link to post Share on other sites
Frugo_PL 0 Posted September 12, 2002 Sure, i found a simple script. Just fly over a car and it will atteach itself to the plane/heli. Share this post Link to post Share on other sites
aphelion79 0 Posted September 14, 2002 Any way to drop it? lol plz share! Share this post Link to post Share on other sites
aphelion79 0 Posted September 18, 2002 *Bump* Anyone? Any ideas? Share this post Link to post Share on other sites
InqWiper 0 Posted September 19, 2002 Download example mission called "Airlift" here. Share this post Link to post Share on other sites
Frugo_PL 0 Posted September 19, 2002 when I see scripts like this i feel like crying! Your scritp can't be implanted in any other mission! I decided to make a few chnges here, so that the script can be executed in mp games... CREATE A FILE NAMED "LIFT.SQS"!!! put the following in it: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_jeep=_this select 0 @vehicle Player distance _Jeep <10 Vehicle player addaction ["Lift","Lift.sqs"];hint "Now You Can Lift Up The Vehicle!" Drop=false vehicle Player removeaction 0 vehicle player addaction ["Drop","Drop.sqs"] #Loop _Jeep setpos [getpos vehicle player select 0,getpos vehicle player select 1,(getpos vehicle player select 2)-3] _Jeep setdir getdir vehicle player ?!Drop:goto "Loop" Chute="Parachutewest" camcreate [getpos _Jeep select 0,getpos _Jeep select 1,(getpos _Jeep select 2)+10] #Loop2 _Jeep setpos getpos Chute ?!Alive Chute:Exit goto "Loop2"<span id='postcolor'> NEXT CREATE FILE NAMED "DROP.SQS": put the following in it: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">Drop=true exit<span id='postcolor'> THIS SCRIPT WAS ORIGINALLY MADE BY InqWiper MODIFIED BY FRUGO_PL Description: now when you fly over a vehicle less than 10 meters, it will attach to the chopper/plane. If you want to drop it, select "Drop" from the action menu and watch the car parachute to the ground. Usage: place the following in init field of the vehicle to be lifted: [this] exec "lift.sqs" you can put this in as many vehicles as you want and it will work! It's perfect for mp! Note: player has to be the pilot! Share this post Link to post Share on other sites
Frugo_PL 0 Posted September 19, 2002 PS. There are some not neededd parts of script. If you manage to optimize the script, feel free to post it here Share this post Link to post Share on other sites
InqWiper 0 Posted September 20, 2002 I just made it in 10 minutes or something, it was an example, it was not a complete script. Share this post Link to post Share on other sites
Frugo_PL 0 Posted September 20, 2002 OK, then I guess that you probably could've done it better if you spent more time on it. However, the fixed script is excellent for mp since all players can pick up many vehicles. It always annoyed me that most of the scripts are made in sp versions, being able to make it work only on one thing activated by one player. These scripts can't be used then in mp. I really think that ppl should make scripts that work both, in sp or mp, or make 2 versions of the script. The script above works well in both, mp and sp. Share this post Link to post Share on other sites
InqWiper 0 Posted September 22, 2002 U sure it works good in MP, have U tried using it with someone else on the server, it works when Ur alone on the server but how does it work when U see another player lifting a vehicle? For me using my first version the other player would see my chopper get stuck in the air and the vehicle flying away by itself(lol) while on my computer the vehicl would fly 200 meter behind me. Share this post Link to post Share on other sites
Frugo_PL 0 Posted September 23, 2002 I didn't test it really with many ppl, but in THEORY the script should work on many players & vehicles. Share this post Link to post Share on other sites