Mox 0 Posted July 4, 2003 Is it possible to add a ammocrate to a Parachute? Nothing Ive tried works so far. If I need a script to do this does someone know where to find it? Share this post Link to post Share on other sites
Harnu 0 Posted July 5, 2003 You prompted me to fix up a very early script of mine For testing, make a trigger (Radio Alpha) and OnActivation: [Choppername] exec "Ammodrop.sqs" AmmoDrop.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#begin _chopper = _this select 0 #next _x = getpos _chopper select 0 _z = getpos _chopper select 1 _y = getpos _chopper select 2 _para = "parachute" camcreate [_x,_z,(_y) + 10] _ammo = "reammoboxwest" camcreate [_x,_z,(_y) + 0] #set ?(not alive(_para)):goto "down" _xx = getpos _para select 0 _zz = getpos _para select 1 _yy = getpos _para select 2 _ammo setpos [(_xx), (_zz), (_yy) + 1] _ammopos = getpos _ammo select 2 _dir = getDir _para _ammo setdir (_dir) goto "set" #down _xxx = getpos _ammo select 0 _zzz = getpos _ammo select 1 _yyy = getpos _ammo select 2 _ammo setpos [_xxx, _zzz, (_yyy) -.1] ~.01 ?(_yyy <= 0):exit goto "down" This script has about a 90+ percent work rate when I tested it. Problems: Occasionally the script will skip, and the ammocrate will come off of the parachute When released from a chopper, velocity of the crate/para is 0. When I tested setting the velocity of the parachute to match that of the chopper, the parachute either: 1) Sticks to the chopper 2) The crate just falls down If you want to tinker with it more, or have another scripter take a look and fix it up, be my guest Share this post Link to post Share on other sites
snipman 0 Posted December 19, 2005 lol this may be a bit wierd to respond to a topic 2 years old.. but how do you use that script with different load out of crates? Share this post Link to post Share on other sites
Trapper 0 Posted December 21, 2005 _ammo = "reammoboxwest" camcreate [_x,_z,(_y) + 0] Change the type of the ammobox. Or to change the loadout manually, the crates local name in this script is _ammo. Share this post Link to post Share on other sites