Search the Community
Showing results for tags 'incomingmissile'.
Found 3 results
-
Hello everyone.. I was trying to test something since I got down by A.A vehicles and units all the time when I'm in the chopper, so... I was thiking about 2 things.. 1 - I was trying to make a "script" that if a locked-on missile is fired, then it loses its target immediately after CM is launched. But I can't get it work... can anyone tell me what is wrong with this code? vehicle player addEventHandler ["IncomingMissile", { "cmImmunity = 0"; }]; ]; 2 - since I didn't get the first one to work I manage to do this script below. I learned that when you CM in the exact moment a missile is fired, you can avoid them. but this code doesnt work either.. this addEventHandler ["IncomingMissile", {params ["_target", "_ammo", "_vehicle", "_instigator"];[_target, "240Rnd_CMFlareMagazine"] call BIS_fnc_fire;}]]; I know there are briliants minds here.. and I hope you guys could help me. Thanks in advance.
- 20 replies
-
- script
- eventhandler
-
(and 2 more)
Tagged with:
-
eventhandler IncomingMissile EventHandler
CTI player IF posted a topic in OFP : MISSION EDITING & SCRIPTING
According to BIKI, the IncomingMissile EventHandler is global. (When talking about local/global of EH, we're talking about whether the EH will be triggered on remote vehicles that the EH is assigned to.) However, the author found that this is incomplete. Few days ago in latest CTI MPMissions (ver TZK_2.12 v00) the author add IncomingMissile EH (used for alert) to tanks on all clients but not on dedicated server. The result is surprising that this EH won't be triggered by server-local rockets/missiles. This follows that IncomingMissile EH must be related to client-local rocket/missiles as well. Further tests show that the "command" parameter of addEventHandler about IncomingMissile EH on dedicated server can be empty string, like <a server-remote vehicle> addEventHandler ["IncomingMissile", ""] and the IncomingMissile EH on player clients' can be triggered by server-local rockets/missiles. Thus the conclusion is that although IncomingMissile EH is global, it requires at least an empty EH on remote clients that you wish their rocket/missile trigger this EH. The command of EH can be nothing, but the EH can't be omitted. It would be more clearly if compare with Fired EH. Assume there are 2 clients: call player's client "A", and call a remote client, e.g. dedicated server, "B". On A client Fired EH can be added to all tanks created on "B" to display tracer effect of tanks created by "B". The Fired EH will work for A once any tank of B shoot any bullet. But if A add IncomingMissile EH to B vehicles, the EH won't work if vehicle is attacking by missiles shot from clients except A, unless on the client where missiles are shot from added IncomingMissile EH to that B vehicle as well. -
IncomingMissile EventHandler Problem
MikeBagdala posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
At the moment i am experimenting with eventhandlers because i plan on creating missions for the Clan that I am in. But I have a problem with the IncomingMissile eventhandler. player addEventHandler ["IncomingMissile", {hint "SHOT";}] I flew over a ZSU with my A-10 and the ZSU shot a missile at me but I didn't get the message "SHOT". I tried it with various other things but they didn't work either. Can anyone please help? And yes i already googled the problem but every post that i found did not contain the information that i need.