Or should it say "
Code: Select all
l.triggered = 1;
l.id = viewer->id;
Hmm, i guess l.id doesn't make sense for area and radius labels, it should say "l.triggered" in loadLabels() as well...
And in js_resetArea() as well... no need to have two different variables to check if the label was triggered.
Hmm, i've just noticed a mechanism to have area labels work for specific players only. I did it manually. Need to try as well.
Hmm, then i need a mechanism to set who can see a group, as well. Because group.player is already in use for a different functionality.
Hmm, almost done. I'm adding a ".subscriber" field to labels (on both json and c++ side) in AREA, RADIUS, OBJECT, GROUP labels.
Hmm, or maybe not. For groups, only eventGroupSeen is triggered, and receiveAllEvents mechanism already handles the subscribers pretty well.