For some reason, this bracket won't appear.
LT = "LaserTarget"; P1 = "%1"; ex = " = _x";"LT + Format [P1, LT CountType [_X]] + ex ForEach [_x]" Foreach list detectlaser
Dang, I don't understand it. It's not appearing. Let's try again:
LT = "LaserTarget"; P1 = "%1"; ex = " = _x";"LT + Format [P1, LT CountType [_X]] + ex ForEach [_x]" Foreach list detectlaser
I'll test it in a second.
Confirmed: believe or not, it actually works! LaserTarget1 corresponds to the position of the laser target int he world. Add in a boolean variable on activation/deactivation, and make sure the trigger covers the whole map, and you're done.
Of course, it can be done in a script. Just install a 1500-m radius trigger called detectlaser, copy switchmode.sqs and initlld.sqs to your mission directory, and run initlld.sqs
when laserinitialized is TRUE, then the laser designator dot exists in the real world, and you can get its loc using a gepos on LaserTarget
Still, this one line trigger is so darn cool, you don't want to do it any other way. Any solution that works in one line, and uses metavariables has gotta kick butt.