Robustcolor 31 Posted Wednesday at 11:54 AM Hi, I'm trying to add an eventHandler to a unit created by Zeus on the dedicatedServer only, but using remoteExec 2 on the EH and then inside the EH remoteExec the playSound to the specific "_shooter" isn't working. It works by using remoteExec 0 but do i really need the EH to run on all clients? Seems like a inefficient way of doing it. This one works with 0 Zeus addEventHandler ["CuratorObjectPlaced", { params ["_curator", "_entity"]; [_entity, ["HitPart", { (_this select 0) params ["_target", "_shooter"]; playSound selectRandom ["hit", "hit1"]; }]] remoteExec ["addEventHandler", 0]; }; vs with remoteExec 2 that is not working. Zeus addEventHandler ["CuratorObjectPlaced", { params ["_curator", "_entity"]; [_entity, ["HitPart", { (_this select 0) params ["_target", "_shooter"]; selectRandom ["hit", "hit1"] remoteexec ["playSound", _shooter]; }]] remoteExec ["addEventHandler", 2]; }; Share this post Link to post Share on other sites
mrcurry 505 Posted Wednesday at 03:09 PM @RobustcolorFrom the biki: Quote While you can add "HitPart" handler to a remote unit, the respective addEventHandler command must be executed on the shooter's PC and will only fire on shooter's PC as well. So short answer is yes you need to add it to all pcs to cover all possible shooters 1 Share this post Link to post Share on other sites