#Particles
1 messages · Page 1 of 1 (latest)
I guess he wants to let player fire particles from his head(eyes)
just like a purple straight line going like 20 blocks
ive tried
but cant seem to figure it out
i still cant seem to figure it out
🤷
loops
curious
Yea like that but faster
;p
yea howd u do that?
magic
send :p
500$
:(
i can send some code like that if you want '-'
function particle_line(l: location, v: vector, length: integer, step-size: number, ceil-wait: integer):
loop {_length} times:
add 1 to {_count}
if {_count} >= {_ceil-wait}:
wait 1 tick
delete {_count}
set standard length of {_v} to loop-value * {_step-size}
draw 1 of dust using dustOption(light green,1) at {_l} ~ {_v} with extra 0 with force
on left click:
if player's held item is dried kelp:
particle_line(location of player's head, vector from yaw player's yaw and pitch player's pitch, 50, 0.25, 5)
a function that spawns a dynamic particle line at the players head on left click with a dried kelp
values can be changed if need be
explain