how would i set an attacker after damaging a mob with code?

  • 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.

ibryce

New Member
Jul 29, 2020
7
0
1
22
my issue is that damaging a mob with an effect won't register the attacker as a player

for example:
Code:
on damage:
 projectile exists
 projectile is arrow
 damage victim by 10 hearts
 #code that would do that
 broadcast "%attacker%"
 
Last edited:
my issue is that damaging a mob with an effect won't register the attacker as a player

for example:
Code:
on projectile hit:
 projectile exists
 projectile is arrow
 damage victim by 10 hearts
 #code that would do that
 broadcast "%attacker%"
Use:
Code:
On damage:
 
Use:
Code:
On damage:
not helpful, just a mistake i made while writing out the example because i'm stupid i guess, i'm basically just asking how to set/change the attacker of a mob, or if there's any other way to do something similar
 
not helpful, just a mistake i made while writing out the example because i'm stupid i guess, i'm basically just asking how to set/change the attacker of a mob, or if there's any other way to do something similar
It already works for me, show me the context in which you're using this code (so like the code around it)
 
Status
Not open for further replies.