colorchanger 0 Posted October 24, 2003 hi! my prob: how do i detect the name and direction of the missile that I have fired? (_this select??) and how do i detect the name and type of the object that i am targeting? i know how to do the opposite stuff, like in those flarescripts where i request the info WHO has fired WHAT at ME... but this time i want to do it the other way around and request WHAT I have fired on WHO!!? thanx! Share this post Link to post Share on other sites
BraTTy 0 Posted October 24, 2003 Easy way offhand that is mostly used is the fired eventhadler... _this select 4 gets you the ammotype and use getnearestobject Like the napalm on my F4u: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ? _weapon == "eca_cornapalm" : _napalm = nearestobject [_plane,_weapon];goto "napalm" You can get the direction and velocity off that As far as I know you can't get your targeted object,possibly using the onmissile/onflare stuff from the targeted unit you could use some trickery Share this post Link to post Share on other sites