OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Zombie on 09 Feb 2007, 10:38:01

Title: drop crate
Post by: Zombie on 09 Feb 2007, 10:38:01
Does anyone have a copy of Dark Nova's dropcrate.sqs?  It used to be here but I guess got lost in the backup.  I used it for OFP and want to try it for Arma.
Title: Re: drop crate
Post by: Planck on 09 Feb 2007, 12:29:53
There are other Paradrop scripts in the Editors Depot (http://www.ofpec.com/ed_depot/scripts.php), try some of those out.



Planck
Title: Re: drop crate
Post by: Zombie on 09 Feb 2007, 21:55:50
Actually, I have, and they are less than friendly to ArmA, I also found them less easy to use in OFP for ammocrates than the dropcrate.sqs
Title: Re: drop crate
Post by: bedges on 09 Feb 2007, 22:22:27
Code: [Select]
_pos = getpos chopper

_ammobox = "ReammoBoxWest" createVehicle [0,0,0]
_parachute = "Parachute" camCreate [(_pos select 0) + 2,(_pos select 1) + 10, 175]
_parachute setdir random 360
_logic = "Logic" camCreate [0,0,0]
_logic moveInDriver _parachute

#ParaLoop
_parachute setVelocity [(velocity _parachute select 0) / 1.1, (velocity _parachute select 1) / 1.1, -6]
_ammobox setPos [getPos _logic select 0, getPos _logic select 1, (getPos _logic select 2) + 1]
_ammobox setdir getdir _logic
~0.01
? vehicle _logic != _logic : goto "ParaLoop"

_ammobox setPos [getPos _ammobox select 0, getPos _ammobox select 1, 0]
deleteVehicle _logic
;_smoke = "SmokeShellGreen" camCreate [getpos _ammobox select 0, getpos _ammobox select 1, 1]

that's from a script tyger wrote. no idea if it's dropcrate or what, but it's what i use. hope it's of use.
Title: Re: drop crate
Post by: Zombie on 10 Feb 2007, 15:17:58
I was able to use your script bedges, but I had to modify it for my particular application, and do some tweaks for arma, here is what I am using, and it works pretty well, thanks for the jumpstart!
Code: [Select]
_chopper = "seagull" camcreate (getpos player)
_chopper flyInHeight 100;
_chopper setpos [getpos _chopper select 0,getpos _chopper select 1, 100]
_pos = getpos _chopper

_parachute = "Parachutewest" createvehicle (getpos _chopper)
_parachute flyInHeight 50
_parachute setpos [getpos _parachute select 0,getpos _parachute select 1, 100]
_parachute setdir random 360
_logic = "Logic" createvehicle (getpos _chopper)
_logic moveInDriver _parachute
deletevehicle _chopper
#ParaLoop
_parachute setVelocity [(velocity _parachute select 0) / 1.1, (velocity _parachute select 1) / 1.1, -6]
crate1 setPos [getPos _logic select 0, getPos _logic select 1, (getPos _logic select 2) + 1]
crate1 setdir getdir _logic
~0.01
? vehicle _logic != _logic : goto "ParaLoop"

crate1 setPos [getPos crate1 select 0, getPos crate1 select 1, 0]
deleteVehicle _logic
? local server : smoke = "smokeshellgreen" createvehicle getpos crate1
Title: Re: drop crate
Post by: Cheetah on 10 Feb 2007, 18:44:35
If the current scripts in our scripting depot aren't what you're looking for, because they might not be improved / working in ArmA, I suggest uploading your own. It turns out that you found a script (tyger's one) and improved it, if you think that more people could use it, please add a readme (don't forget to credit tyger), maybe a demo mission possibly some pictures and the optimized script and post it in ArmA Editing Resources.
Title: Re: drop crate
Post by: Zombie on 10 Feb 2007, 20:58:40
Good idea Cheetah, I will put that together and u/l it today.  In the same mission I have also used a conversion of toadlifes real_halo.sqs which I will include as well
Title: Re: drop crate
Post by: USI Ziggy on 11 Feb 2007, 15:18:52
thanks for the effort zombie    :yes: