Is there a way to make it so that when you right click, it triggers a "while" event that keeps going while you are right clicking.
Obviously, the "if player is right clicking" and "while player is right clicking" don't work, thats what I need help with.
If anyone could help or have another idea I could do this a reply would be great
Code:
on right click with 2256:
if {alreadyfiring.%player%} is not set:
if player is right clicking:
set {alreadyfiring.%player%} to "True"
while player is right clicking:
wait 2 ticks
make player shoot snowball at speed 3
play raw sound "tile.piston.in" at location of player with pitch 2 volume 1
delete {alreadyfiring.%player%}
else:
stop
If anyone could help or have another idea I could do this a reply would be great