Change the self-switch of a different event?

I would like to have an event do an in-move-route script call that switched the self-switch of a separate event. What would be the command for something like that? I tried selecting the desired event in the move route and using the script call:

this.setSelfSwitch('A', true);
It didn't work.
Thanks in advance.
// Turn on self-switch A for event 5 on map 1 $gameSelfSwitches.setValue([1, 5, 'A'], true);
Thanks mate, worked like a charm.

Original thread: https://forums.rpgmakerweb.com/threads/change-the-self-switch-of-a-different-event.162952/