BlackDeath-CFH 1 Posted September 7, 2002 i used to know this script where a hummer could drop by a parachute, i lost it when i formated so does anyone know a script to use or how i can do this? Share this post Link to post Share on other sites
vade_101 0 Posted September 7, 2002 this is the one i use (uses a gamelogic for the marker), dropheight is the distance from the ground the parachute detaches. paradropobject.sqs </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ;usage: [cargo, marker, height, DropHeight, xoffset, yoffset, zoffset] exec "ParaDropObject.sqs" ; ;********************* ;Gets Variables from script call. _Cargo = _this select 0 _Marker = _this select 1 _Height = _this select 2 _DropHeight = _this select 3 ;These variables allow you to apply an offset to the parachute. ;Using these variables you can position the parachute so it looks right above the object. ;Experimentation is the key here. _XOffset = _this select 4 _YOffset = _this select 5 _ZOffset = _this select 6 ;Seems to kickstart a vehicle, without it they just sit there, or worse hover. _Cargo domove [(getPos _Cargo select 0), (getPos _Cargo select 1)] ;Sets Initial Variables _MarkerPos = GetPos _Marker _cx = _MarkerPos select 0 _cy = _MarkerPos select 1 _cz = _MarkerPos select 2 _Dir = 0 ;Creates and Sets Initial position of Cargo. _Cargo setpos[_cx, _cy, (_cz + _Height)] ;Places Cargo and parachute at required position,height and offset _Parachute = "parachute" camCreate[((getPos _Cargo select 0) + _XOffset), ((getPos _Cargo select 1) + _YOffset), ((getPos _Cargo select 2) + _ZOffset)] ;Places Cargo relative to Parachute ;Note the offset is reversed because we are making the cargo relative to the parachute and ;Not the other way around as in the previous camcreate call #Loop1 ~0.01 _dir = getdir _Parachute _Cargo setdir _dir _Cargo setpos[((getPos _Parachute select 0) - _XOffset), ((getPos _Parachute select 1) - _YOffset), ((getPos _Parachute select 2) - _ZOffset)] ;Loops Until Object reaches the ground, warning: if you set the drop height to zero the cargo ;has a tendancy to disappear ?((getpos _Cargo select 2) > _DropHeight): goto "Loop1" #Loop1 Exit exit <span id='postcolor'> Share this post Link to post Share on other sites
BlackDeath-CFH 1 Posted September 7, 2002 7--></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (vade_101 @ Sep. 07 2002,217)</td></tr><tr><td id="QUOTE">this is the one i use (uses a gamelogic for the marker), dropheight is the distance from the ground the parachute detaches. paradropobject.sqs </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ;usage: [cargo, marker, height, DropHeight, xoffset, yoffset, zoffset] exec "ParaDropObject.sqs" ; ;********************* ;Gets Variables from script call. _Cargo = _this select 0 _Marker = _this select 1 _Height = _this select 2 _DropHeight = _this select 3 ;These variables allow you to apply an offset to the parachute. ;Using these variables you can position the parachute so it looks right above the object. ;Experimentation is the key here. _XOffset = _this select 4 _YOffset = _this select 5 _ZOffset = _this select 6 ;Seems to kickstart a vehicle, without it they just sit there, or worse hover. _Cargo domove [(getPos _Cargo select 0), (getPos _Cargo select 1)] ;Sets Initial Variables _MarkerPos = GetPos _Marker _cx = _MarkerPos select 0 _cy = _MarkerPos select 1 _cz = _MarkerPos select 2 _Dir = 0 ;Creates and Sets Initial position of Cargo. _Cargo setpos[_cx, _cy, (_cz + _Height)] ;Places Cargo and parachute at required position,height and offset _Parachute = "parachute" camCreate[((getPos _Cargo select 0) + _XOffset), ((getPos _Cargo select 1) + _YOffset), ((getPos _Cargo select 2) + _ZOffset)] ;Places Cargo relative to Parachute ;Note the offset is reversed because we are making the cargo relative to the parachute and ;Not the other way around as in the previous camcreate call #Loop1 ~0.01 _dir = getdir _Parachute _Cargo setdir _dir _Cargo setpos[((getPos _Parachute select 0) - _XOffset), ((getPos _Parachute select 1) - _YOffset), ((getPos _Parachute select 2) - _ZOffset)] ;Loops Until Object reaches the ground, warning: if you set the drop height to zero the cargo ;has a tendancy to disappear ?((getpos _Cargo select 2) > _DropHeight): goto "Loop1" #Loop1 Exit exit <span id='postcolor'><span id='postcolor'> i put this into .sqs form, so do i put [cargo, marker, height, DropHeight, xoffset, yoffset, zoffset] exec "ParaDropObject.sqs" in the hummer init field? Share this post Link to post Share on other sites
BlackDeath-CFH 1 Posted September 7, 2002 ok.. i tried useing the script i got the parachute to drop, but the hummer isnt on it. how exactly do i use this script? Share this post Link to post Share on other sites
vade_101 0 Posted September 9, 2002 I use it on a trigger set off by the helo/plane that is supposed to be dropping the hmmwv, if your still haveing problems i'll try and do a demo mission with it and see how that works. Share this post Link to post Share on other sites
BlackDeath-CFH 1 Posted September 9, 2002 no plane or hummer is suppossed to be dropping it. i just want it to start out falling from the sky with us. Share this post Link to post Share on other sites
vade_101 0 Posted September 9, 2002 you could try it from a "anybody present" trigger, or test it with a radio trigger see if that helps Share this post Link to post Share on other sites
Lt_Damage 0 Posted September 9, 2002 Sounds like he doesn't understand: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">usage: [cargo, marker, height, DropHeight, xoffset, yoffset, zoffset] exec "ParaDropObject.sqs"<span id='postcolor'> cargo = name of object to be dropped e.g You must give the HMMVV a name in the Edit Object field. marker = name of what you used to mark the drop position, if you created a game logic and gave it the name "dropspot" or made a marker and named it that. Height = Appears to be height of the parachute above the cargo, so i guess if you had a hummvv this would be a smaller number than if you had a 5T truck. Drop Height = This looks to be the height from which the parachute starts to descend. XOffset, YOffset, the coordinates of the drop. usage: [MYHMMVV, DROPSPOT, 1, 150, xoffset, yoffset, zoffset] exec "ParaDropObject.sqs" Haven't tested this but as far as I understand it thats how you use it. The xoffset and yoffset can be obtained by the "Getposinator" on the www.ofpec.com Share this post Link to post Share on other sites
BlackDeath-CFH 1 Posted September 10, 2002 i cant find getposinator on www.ofpec.com and exactly what is x y and zoffset? i have no clue what it is, or what to do with it. Share this post Link to post Share on other sites
BlackDeath-CFH 1 Posted September 10, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (vade_101 @ Sep. 09 2002,13:46)</td></tr><tr><td id="QUOTE">I use it on a trigger set off by the helo/plane that is supposed to be dropping the hmmwv, if your still haveing problems i'll try and do a demo mission with it and see how that works.<span id='postcolor'> could you do a demo mission? i have a feeling i wont get this done without one and i really want to get this done. Share this post Link to post Share on other sites
BlackDeath-CFH 1 Posted September 10, 2002 pleeeease Share this post Link to post Share on other sites
vade_101 0 Posted September 11, 2002 ah, no the offset ones are just how much you want the chute offset from the object Share this post Link to post Share on other sites