nuxil 2 Posted March 20, 2007 hi all.. how can i make a missile go off in mid air? i have tryed with setdammage but that didnt go so well.. i know the missile(s) have a lifetime.. and when the lifetime is out,, the missile explodes. so is ther a way for me to set the lifetime to 0 where i want it to go off ? ? Share this post Link to post Share on other sites
ACF 0 Posted March 20, 2007 If you've tried to setdammage the missile, I assume that you have been able to identify it. You could try something like: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_mymissilepos = GetPos mymissile _detonator = "WeaponHolder" CreateVehicle _mymissilepos // just in case the missile's going a bit too fast: _mymissile SetPos _mymissilepos sleep 0.1 DeleteVehicle _detonator I personally prefer "WeaponHolder" because it's a 'solid' invisible object, but "Bomb" is an option if you want a bigger bang. Just be aware that it can be a bit unreliable... Share this post Link to post Share on other sites
walker 0 Posted March 20, 2007 Hi all A hint: Missiles go off if they hit something. The process of hitting something is basically two objects occupying the same space. The code in the post above finds out where a missile is. What happens if you spawn another object there? PS this has been known in the community for some time. Kind Regards Walker Share this post Link to post Share on other sites
nuxil 2 Posted March 20, 2007 well. if ther is a way to reduce the lifetime on the missil,, it can be trigger by script or other methods.. i know the missile go off when it hits something,, but it also go off when it has used up its "lifetime" Share this post Link to post Share on other sites