So, I'm trying to make a particle beam ability for a custom boss I'm trying to make. I'm a new skriptor, so I don't really understand what's wrong with this. I got some code from other forum post solutions, but it's still not working. Basically the ability is supposed to shoot a particle beam to the nearest player (I will later add a damage effect). It says there's no errors, but the particle beam doesn't work. Can someone please help me fix this script? (I'm using skDragon as well)
Here's the script:
Here's the script:
Code:
every 5 seconds in "world_nether":
loop all entities in world "world_nether":
loop-entity is vindicator
set {_illagerlord} to loop-entity
{_illagerlord} is alive:
loop all players in world of {_illagerlord}:
set {_dist} to (distance between {_illagerlord} and loop-player *1000) + (random integer between 0 and 999)/1000
set {_list::%{_dist}%} to loop-entity
drawLine particle endrod, XYZ 0, 0, 0, center {_illagerlord}, target %the first element of {_list::*}%, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 1, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1