Hello! I'm working on a skript that makes a bow doesn't require any arrow. well everything works pretty well until the despawning the arrow part. Here's the code that im working:
This code is not working. but there's no error when I load the skript. I did research the documentations, search the forum, and try on different way like loop the entity or set the entity to a variable. but none of them worked. Also I tried to change the type to all arrows and all projectiles. And none of them worked.
I dont know what to do anymore and decided to ask in the forum. I hope someone will try to help me.
Thanks!
Bump?
[doublepost=1493891791,1492261363][/doublepost]Bump
code_language.skript:
on right click:
if player's tool is bow:
if {shoot.%player%} is set:
cancel event
else:
cancel event
shoot an arrow from player at speed 5
set {shoot.%player%} to true
wait 1 second
on projectile hit:
if projectile is an arrow:
kill last spawned arrow
This code is not working. but there's no error when I load the skript. I did research the documentations, search the forum, and try on different way like loop the entity or set the entity to a variable. but none of them worked. Also I tried to change the type to all arrows and all projectiles. And none of them worked.
I dont know what to do anymore and decided to ask in the forum. I hope someone will try to help me.
Thanks!
Bump?
[doublepost=1493891791,1492261363][/doublepost]Bump