Harnu 0 Posted March 3, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">#loop ammo = "ReammoBoxWest" createvehicle [(Getpos logic1 select 0, getpos logic1 select 1, getpos logic1 select 2) + 0] para3 = "Parachute" camcreate [(Getpos logic1 select 0, getpos logic1 select 1, getpos logic1 select 2) + 5] _vx = velocity logic1 select 0 _vz = velocity logic1 select 1 _vy = velocity logic1 select 2 para3 setvelocity [(_vx), (_vz), (_vy - 10)] ammo setvelocity [(_vx), (_vz), (_vy - 10)] #go ?(not alive(para3)):goto "down" ammo setpos [(Getpos para3 select 0, Getpos para3 select 1, Getpos para3 select 2) + 1.5] _dir = getDir para3 ammo setdir (_dir) goto "go" #down _y = getpos ammo select 2 ?(_y <= 0):exit xvar = (getPos ammo select 0) zvar = (getPos ammo select 1) ammo setPos [(xvar) - .2, (zvar) - .3, (getPos ammo select 2) - .1] ~.01 goto "down"<span id='postcolor'> I made this script and it seems like sometimes it works, sometimes it doesn't. Â The second half activates early. Â It stops setting its position with the parachute. Â Even though the parachute hasn't died yet! This only seems to work when the chopper it creates from is going slow or not at all. Â Why would it activate early just because it's going a little faster? edit: I know if I remove the setvelocity stuff it proabably will work, but I want to try and avoid that. Looks better flying out of the chopper with the momentum of it, not just a dead stall down. Share this post Link to post Share on other sites