#Script for igniting entities with a chance
1 messages · Page 1 of 1 (latest)
What have you got so far?
I have this, but it doesn't seem right because it gives an error.
on damage of a player:: chance 10% if victim is a player or victim is a mob: set victim's fire to 5 seconds
sure, I see a couple of issues, let me list them
okey
- The event is only called when a player is damaged (
of player) thus will not work for mobs - you have two
:after the event - chance needs to be
chance of x% - you can't check multiple conditions in one line, the check is also not needed, what else is there other than players and mobs?
- you can't set an entity's fire, you can, however, ignite them.
To be honest, I don't quite understand everything. Could you help me write a finished version so I can look at it? I have some other ideas for the script, and I could use it to find information on the website and study everything. I just need a little push.
I need to set fire to the target.
o no
This is 3 lines, you can check the docs (https://skripthub.net/docs) for an event to detect when an entity is damaged, and an effect to ignite