Finding target when making an attack

I’m developing a game system, and can’t figure it out, when there is combat active and a player is targeting an NPC, where do i find what token is being targeted?
1 Reply
Forien
Forien12mo ago
for current user:
game.user.targets
game.user.targets
for other user:
game.users.get(id).targets
game.users.get(id).targets
keep in mind that it holds targeted Token, which is type of Placeable, not TokenDocument which is type of Document
Want results from more Discord servers?
Add your server