simkas 25 Posted February 17, 2018 I'm trying to make an event handler where if a indfor unit gets killed, it gives the opfor unit that killed him an item. The code looks like this: { _x addMPEventHandler ["MPKilled", {if ((_this select 1) in [Slasher_1, Slasher_2]) then {(_this select 1) addItemToVest "2Rnd_Slug_Magazine";}}]} forEach indGroups; That's in my initServer.sqf, Slasher_1 and Slasher_2 are variable names given to opfor units and indGroups is an array of all indfor units. It works in local testing, but it doesn't work on a dedicated server, it just doesn't do anything at all. Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted February 18, 2018 You shouldn't need an eventhandler for addItemToVest, since it's both argument and effect global. Try if the addItemToVest command itself is working on your dedicated setup and go from there. Cheers Share this post Link to post Share on other sites