Jump to content
wozzsta

how to detect when AI spawned by the "spawn AI" module are killed.

Recommended Posts

Hi guys, 

 

i am trying to detect when the AI are killed that are spawned by the "spawn AI" module so i can trigger this code, but i can't see a way to get it to trigger. 

 

Any ideas? 

 

this addEventHandler ["Killed", { 
 
  params ["_killed", "_killer", "_killerID"]; 
 
  if (isPlayer _killer) then { 
   
   _killerID = owner _killer; 
   [_killed] remoteExec ["fnc_addmoneyMP", _killerID, false]; 
  }; 
 }];

 

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

×