how to execute code as attacker?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

wintahh

Member
Sep 18, 2024
1
0
1
i have this skript, it says on line 3 'Use attacker' and/or 'victim' in damage/death events and idk if im sleep deprived or it doesnt make sense but i dont get it.
i thought it was a problem of it trying to get the enderman's statistics

Code:
on death of enderman:
    if attacker is a player:
        set {_eman.%uuid of attacker%} to placeholder "statistic_kill_entity:enderman"
        send "%{_eman.%uuid of attacker%}%" to attacker

help?