Is there a script for detecting what actor is attacking?

Hello, I'm wondering if there is a script call similar to the example I have bellow but for detecting which actor is attacking.

For clarification I have a common event that needs to look for which actor was selected when in battle, sort of like how $gameParty._targetActorId works in the menu, but for whose attacking. Without it, the event will just trigger no matter whose attacking, which I don't want

1716358894913.png
BattleManager._subject

EDIT: If you want the actor id, try: BattleManager._subject.actorId()
BattleManager._subject

EDIT: If you want the actor id, try: BattleManager._subject.actorId()
Ahh, thank you.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-script-for-detecting-what-actor-is-attacking.168905/