Jump to content
Sign in to follow this  
Sid_the_Squid

Script for using choppers to lift tanks

Recommended Posts

Dose anyone know where i can get a script like this (i have one script for lifting trucks and jeeps its very good but i really want one that can lift tanks).

can any one help ??

thx

Share this post


Link to post
Share on other sites

Ummm,

why don't you exchange the name of the truck or jeep w the one of the tank? scriptwise there's no difference btw a truck or any other object. wink.gif

Share this post


Link to post
Share on other sites

tounge.gif hi, could you please give me the script to lift stuff?

thx

Share this post


Link to post
Share on other sites

"Ummm,

why don't you exchange the name of the truck or jeep w the one of the tank? scriptwise there's no "

I tyred that, but it did not seem to work, prehapse im doing it wrong, i dont really know much about scrips.

i was using the ronaldV cargo lifting script, i cant remember where i got it from,

if you contact me on ICQ ill send it to ya its under 1mb.

my ICQ no is 100062486 (name Sid_the_Squid)

Share this post


Link to post
Share on other sites

a 1 MB SCRIPT??? And Mrs Molly is dancing the funky chicken!!

To use this here script, copy and paste it, call it HeloCargo.sqs. (Should run about 200 byte. Works just fine.)

; This script was written by a gentleman by the name of vienna aka franz99

;

; [<Heliname>,[unitname1,Unitname2,.....],<DetectionRadius>,<DistanceFromHelo

>] exec "HeloCargo.sqs"

;

;*************************************************************************

;Parameter:

;Heliname

_heli = _this select 0

;Liste mit den Tranportunits

_liste = _this select 1

;Aufnahmebereich

_bereich = _this select 2

;Aufhängungsabstand

_abstand = _this select 3

; Abfrage ob Unit aus Liste im Aufnahmebereich

#Loop0

~0.1

? not alive _heli : exit

_z = getpos _heli select 2

; ist Heli unter 6 m, dann Script im Leerlauf

? _z < 6 : goto "Loop0"

; Suche ob eine Unit der Liste im Aufnahmebereich

_i = count _liste

_j = -1

#Schleife

_j = _j + 1

~0.1

? _j >= _i : goto "Loop0"

_unit = _liste select _j

? not alive _unit : goto "Schleife"

? _heli distance _unit < _z+_abstand : goto "Rauf"

goto "Schleife"

;_unit bis auf 5 m Abstand raufkurbeln

#Rauf

;Aufnahmemeldung ausgeben

_heli SideChat "Well there! Now its dangling."

_z = 0.0

#Loop1

~0.02

_unit setpos[getpos _heli select 0,getpos _heli select 1,_z]

_z = _z+0.1

? _z < (getpos _heli select 2)-_abstand : goto "Loop1"

;Transportieren bis _unit Boden berührt

#Loop2

~0.05

_z = (getpos _heli select 2)-_abstand

_unit setpos[getpos _heli select 0,getpos _heli select 1,_z]

? _z > 0 : goto "Loop2"

;Absetzmeldung ausgeben

_heli SideChat "Cargo released!"

; give time so helo does not immediately pick unit back up!

~10

goto "Loop0"

Share this post


Link to post
Share on other sites

like i said its under 1mb, i could not remember how much under.

Ill give that script of yours a go, how would i set it up ?

I really dont know much about scrips, this one i was using is quite easy, but its in 3 parts, i would need to post you the zip file as opposed to posting the contense here.

Share this post


Link to post
Share on other sites

guess you can't attach anything on this board. send me your email address, I'll mail you a mission that uses the helocargo.sqs. (on tues. earliest. I'm not there until then.)

Share this post


Link to post
Share on other sites

OK, ill try that 1, but u know of 1 where u can actually fly the chopper and pick up cargo, not using the AI to fly it ?

Share this post


Link to post
Share on other sites

Hey Sid_the_Squid could you mail to with a script biggrin.gif

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (JumpDog @ July 21 2002,18:26)</td></tr><tr><td id="QUOTE">OK, ill try that 1, but u know of 1 where u can actually fly the chopper and pick up cargo, not using the AI to fly it ?<span id='postcolor'>

IS it possible to do this?

my email is

aphelion79@cox.net

if you have any info on it please share smile.gif

Share this post


Link to post
Share on other sites

Ok to be very clear here.

1) Yes it is possible to pick up jeeps and trucks on-the-fly i.e. in game in a choppper you can fly (any chopper works) using this script i was.

2) I really would like to know how to modify it for lifting tanks, i have e-mailed the author but no responce (i guess he's either tyred of hearing the same thing or too busy).

3) If anyone else wants a copy of teh script i am hosting it here. http://members.lycos.co.uk/tcv0doo/cargo.htm

Share this post


Link to post
Share on other sites

For anyone whos intrested.

Ive figured out how to edit the script to allow tank pick up in game, by you the player not bots.

The file CargoRope.sqs that controls the pickup or veicheals needs to be edited at the following place.

Under the sub heading '#findcargo'

there are a number of lines similar to this one

_cargo = nearestObject [_rope, "Jeep"]

? ((_rope Distance _cargo)  < 3.8 && (_rope Distance _cargo)  > 3.4) : ActionText = "Attach Jeep"; goto "DetailedPosCheck"

Its the [_rope,"jeep"] bit and actiontext = "attach jeep" are the bits that need attention, change the name of the viechel here to what ever you want.

I.e. BMP, I tryed it this before but it did not seem to work, however i tyred it again and this time it worked, using BMP.

I'm not 100% sure what all the number mean prehapse someone with more scripting knowledge could figure this out.

Anyway hope this helps some ppl.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×