Solved make a player damage someone

  • 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 comminuty!

    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!

Status
Not open for further replies.

GewoonQuint

Member
Oct 15, 2017
15
0
0
43
Hey,

So I'm trying to make a little duel plugin with wands and stuff. I want to detect when a player dies, which isn't that difficult with
code_language.skript:
on death of player:
    #event

I want to damage any players that are in a 3 block radius of the targeted block of the executor.
code_language.skript:
        loop all entities in radius 3 around location of targeted block of executor:
            if loop-entities isn't "%player%":
                damage loop-entities by 4 hearts

Here's the catch:
When you damage a player with that code, it doesn't count as if the player has hit the victim.

Hope this makes any sense :emoji_slight_smile:
 
Status
Not open for further replies.