quakergamer 0 Posted November 7, 2003 Hello, I want to know if there is a way to detect if the missile (lets say the FFARs on the Apache) have been fired from the left or right side WITHOUT editing the model (because its made by BIS and we cannot edit it) ? If anyone has a suggestion please tell me! Later, thanks for the help Share this post Link to post Share on other sites
raedor 8 Posted November 7, 2003 open with the eh fired a function and ask where the rocket is. then you have to check if this is the right or left side of the chopper. Share this post Link to post Share on other sites
quakergamer 0 Posted November 8, 2003 open with the eh fired a function and ask where the rocket is. then you have to check if this is the right or left side of the chopper. EDIT: Ive tested it and I cant get the position of the missile ?? This is what Im doing: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _Mi17 = _this select 0 _CurrentWeapon = _this select 1 _CurrentWeaponPos = getPos _CurrentWeapon _Mi17 groupchat _CurrentWeaponPos _Mi17 groupchat _CurrentWeapon I get an error with this ... Share this post Link to post Share on other sites
raedor 8 Posted November 8, 2003 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_Mi17 = _this select 0 _ammo = _this select 4 _rocket = nearestObject [_Mi17, _ammo] Share this post Link to post Share on other sites
Rastavovich 0 Posted November 8, 2003 There's an easier way. Use the ammocount to determine which side fired. You can see how it is done on our scripts for comanche or havoc. Share this post Link to post Share on other sites
quakergamer 0 Posted November 9, 2003 Hello, Thanks for your help raedor and Rastavovich, problem is now solved ! Later! Share this post Link to post Share on other sites
AirwolfPL 0 Posted November 10, 2003 It's pretty simple. I'm using modulo division for that. First you've got to check from which side first missile is fired. Then, you've got to create a script - you can start it up using init event handler (infinite loop in this case will be necessary), or fired event handler. OK. Let's say first missile is always fired from the left side - and you running the script using fired event handler - put something like this into script: _missilesleft = _unit ammo "missile" if(_missileleft mod 2 > 0) then {>>>something<<<} else {>>>something else<<<}; Knowing which missile is fired first, using modulo division and the number of missiles left you can determine if the right or left missile was fired. PS.: Of course it only works for missiles launched from "raketa" or "strela" points - not those launched from proxy-defined locations. Share this post Link to post Share on other sites