So I want to make the player the attacker after I used damage on another entity (for a later on damage event), and the force player to attack effect does not get me the desired result due to only attacking 1 entity.
on right click:
loop all entities in radius 5 of player:
if the loop-entity is not a player:
damage the loop-entity by 5
set attacker of last damage-event to player
Is there any way to set the attacker to the player?
on right click:
loop all entities in radius 5 of player:
if the loop-entity is not a player:
damage the loop-entity by 5
set attacker of last damage-event to player
Is there any way to set the attacker to the player?