Jump to content
Sign in to follow this  
colorchanger

Detect name of own missile and enemy targeted!??

Recommended Posts

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!!rock.gif?

thanx!

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×