Page MenuHomeFeedback Tracker

There is no way to get who activated a radio trigger
New, WishlistPublic

Description

For radio triggers, thisList (or list thisTrigger) always returns an empty array, making it impossible to find out who activated the trigger.

I'm not even sure I like the fact that it was changed to activate on all machines.

I had to create the trigger manually on each client to get it to not synchronize, and provide a way to detect who triggered it.

_trigger = createTrigger ["EmptyDetector", [0,0,0]];
_trigger setTriggerArea [0, 0, 0, false];
_trigger setTriggerActivation ["ALPHA", "PRESENT", true];
_trigger setTriggerStatements ["this", "SupplyDrops_Request = true", ""];

This makes it behave like it did in OFP, where it's only activated on machine of the player who actually activated it, and thus that machine can tell the server that its player wants a supply drop, or whatever.

Details

Legacy ID
2825900052
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Place a player unit.
  2. Place a trigger and set activation to Radio Alpha.
  3. Put the following in the On Activation field: hint ("Activated by: " + str thisList);
  4. Preview and activate radio Alpha.
Additional Information

I've been looking around the internet and it seems that radio triggers used to only be activated on the machine who actually activated them (Which is how I remember it being.), but apparently that was back in OFP (I can't believe I haven't required getting who activated radio triggers since OFP?!?), and was changed in version 1.30 to activate on all machines.

I guess, in the process someone forgot to fill out thisList.

Event Timeline

MulleDK19 edited Additional Information. (Show Details)
MulleDK19 set Category to Scripting.
MulleDK19 set Reproducibility to Always.
MulleDK19 set Severity to None.
MulleDK19 set Resolution to Open.
MulleDK19 set Legacy ID to 2825900052.May 7 2016, 4:21 PM

This would be SO FREAKING HANDY to find out who is running these scripts. Or even just broadcast who ran it last would be useful.

Agreed with oz, I'm really surprised thisList doesnt specifically work for Radio types.