Hello, I'm new at Skript, and I've been trying to learn how to use vectors.
In this script, I'm trying to get these loop entities to shoot particles toward the player using vector data. Interestingly enough, when I run this script no errors occur but the script does nothing at all, not even damage. If I remove the vector variables completely the script works just fine (sans particles). Is there anything that I'm doing wrong that could cause this?
Here's the code:
In this script, I'm trying to get these loop entities to shoot particles toward the player using vector data. Interestingly enough, when I run this script no errors occur but the script does nothing at all, not even damage. If I remove the vector variables completely the script works just fine (sans particles). Is there anything that I'm doing wrong that could cause this?
Here's the code:
Code:
on right click:
lore of player's tool contains "soul":
loop all entities in radius 3 around target entity:
loop-entity is not player:
set {_start} to location of loop-entity
set {_end} to location of player
set {_vector} to vector from {_start} to {_end}
set {_v2} to normalized {_vector}
damage loop-entity by 1
play sound "entity.vex.ambient" at loop-entity
draw 1 soul at loop-entity with offset {_v2} with extra 1