aaronhance 1 Posted April 12, 2013 I've been browsing the wiki for something that will execute a script if a player kills another, but I can't find anything. Share this post Link to post Share on other sites
banky 4 Posted April 12, 2013 If it's a specific person you just have to give them a name and make a trigger with "!alive playername" without quotes in the condition box of the trigger. Then you just put whatever you want to happen in the onact box. Share this post Link to post Share on other sites
pojo2k8 1 Posted April 12, 2013 (edited) I've been browsing the wiki for something that will execute a script if a player kills another, but I can't find anything. Try this: http://forums.bistudio.com/showthread.php?128953-How-can-i-know-when-a-player-kills-a-friendly-unit (Sorry, forum wouldn't let me post a link) Edited April 12, 2013 by [FRL]Myke link fixed ;) Share this post Link to post Share on other sites
aaronhance 1 Posted April 12, 2013 (edited) If it's a specific person you just have to give them a name and make a trigger with "!alive playername" without quotes in the condition box of the trigger. Then you just put whatever you want to happen in the onact box. I want to be able to get the killer name as I want to give a reward. Also it is a mutiplayer death match mission, so there is no way for me to know the name of the dead. Edited April 12, 2013 by aaronhance Share this post Link to post Share on other sites
pj[cz] 2 Posted April 12, 2013 Hi, you are looking for eventhandlers, simply add a "killed" eventhandler to every player and you should be able to get your data. https://community.bistudio.com/wiki/addEventHandler Share this post Link to post Share on other sites