nuxil 2 Posted August 13, 2008 Hi.. Does anyone of you know if there is a way to return the unit that has a lockon on it? i can only see 1 ways to do this.. * 1: "Make|Use" a dummy "weapon/ammo" and using a eventhandler "hit" to check if dummy ammo has hit. Has anyone a better idea on how it can be done ? Share this post Link to post Share on other sites
squeeze 22 Posted August 13, 2008 _veh addEventHandler ["IncomingMissile" ,{_this exec "Player\Event IncomingMissile.sqs"}] http://community.bistudio.com/wiki/Armed_Assault:_EventHandlers_List Share this post Link to post Share on other sites
nuxil 2 Posted August 13, 2008 Squ33z3 I know about eventhandler. but thats not the problem.. when i have a lockon "readeye" i want to return the unit that is locked on,, so just putting an eventhandler ther,, means i have to fire the weapon first.. thats not what i wanted.. seams like i need to make a dummy weapon for this. Share this post Link to post Share on other sites
.kju 3245 Posted August 13, 2008 not possible you need to do a hack/workaround yourself Share this post Link to post Share on other sites
nuxil 2 Posted August 13, 2008 Yeah, your right Q.. i have been at @ the wiki,forums all over the place, googled 50 x times. only hope seams to be, is to add this to a wishlist for arma!. But i am working on a hack "Workaround". so far it looks like i might have a solution for my problem.. Share this post Link to post Share on other sites
Boborish 1 Posted August 13, 2008 Maybe you could try the assignedTarget command but, honestly, I doubt it works. Share this post Link to post Share on other sites
squeeze 22 Posted August 13, 2008 I think your best bet would be to use the Knowsabout command.. http://community.bistudio.com/wiki/knowsAbout I might give it ago myself, get back to you if it looks workable in MP. Share this post Link to post Share on other sites
nuxil 2 Posted August 14, 2008 Squ33z3 & Boborish. No and No Quote[/b] ]_kv = _soldierOne knowsAbout _jeepOne Quote[/b] ]_target = assignedTarget _T72 dont you guys see the problem here? i dont know who the target is,, No Commands will return the target thats locked on.. Quote[/b] ]I might give it ago myself, get back to you if it looks workable in MP. Dont waste your time on trying to get it to work.. i almost have it woking, with a workaround Share this post Link to post Share on other sites
Boborish 1 Posted August 14, 2008 dont you guys see the problem here? Did I say "Im sure assignedTarget works" or something like that? No. From the name of the command I assume it returns the target that is set with doTarget / commandTarget or by leader with "X, TARGET/ENGAGE THAT Y" but as I know how is ArmA trustworthy (means that some commands do something different than they should and some commands dont work at all) I gave it a chance it might have the "side effect" of returning the currently locked-on target. It sure is worth a try... BTW: KnowsAbout is certainly not going to work (not to meant the "know system" in ArmA is Very weird). Anyway, if you find the workaround, please share it. Im curious if its possible. Share this post Link to post Share on other sites
nuxil 2 Posted August 14, 2008 Quote[/b] ]Anyway, if you find the workaround, please share it. Im curious if its possible. yes i will share it.. when its done,, but the problem is that,, its no longer just scripts. testing in progress.. By nuxil Share this post Link to post Share on other sites