Trying to make a simple mission where when a popup target (t1) is "hit" by a player (p1), it does an addScore 1. Simple enough for SP and local hosted missions. However, when run on a dedicated server, I can't figure out how to get the hit eventhandler to work since it's local.
shooter = "";
t1 addeventhandler ["hit",{shooter = _this select 1; publicVariable "shooter";shooter addscore 1;}];
I've also tried to stick that whole publicVariable line in a separate sqs file and launch it via "this exec" from the popup's init line. Adding it directly to init.sqs doesn't work either. I'm assuming this is because despite the publicVariable, the line is still in reference to the popup target itself and not the player, and thus still remains local?
Hopelessly stuck, help!