Hi!
So I am currently trying to make a script for a snowball. I want the script to make it so if you name the snowball a specific thing, the snowball will explode on impact on ground or entity.
I made a script here but I can't figure it out:
on damage of entity by snowball:
snowball is named "Cheese"
create an explosion of force 10 at the victim
on projectile hit:
event-projectile is snowball named "Cheese"
create an explosion of force 10
Can you please help?
Posted by: rabiesvirus from the skUnity Discord. View the thread on skUnity Discord here
So I am currently trying to make a script for a snowball. I want the script to make it so if you name the snowball a specific thing, the snowball will explode on impact on ground or entity.
I made a script here but I can't figure it out:
on damage of entity by snowball:
snowball is named "Cheese"
create an explosion of force 10 at the victim
on projectile hit:
event-projectile is snowball named "Cheese"
create an explosion of force 10
Can you please help?
Posted by: rabiesvirus from the skUnity Discord. View the thread on skUnity Discord here