Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Well? It depends on how you structured the gun code.
on rightclick holding stick:
broadcast "%difference between {difference} and now%"
make player shoot a snowball at speed 10
set {difference} to now
on right click:
if {Trigger::%player%} is set:
delete {Trigger::%player%}
stop
set {Trigger::%player%} to true
while {Trigger::%player%} is set:
make player shoot a snowball at speed 10
wait a ticks
if they rightclick once wouldnt it it never stop shooting?im not sure if this works
code_language.skript:on right click: if {Trigger::%player%} is set: delete {Trigger::%player%} stop set {Trigger::%player%} to true while {Trigger::%player%} is set: make player shoot a snowball at speed 10 wait a ticks
Of course, he need right clicked again.if they rightclick once wouldnt it it never stop shooting?
no matter how many times you click it always ends on "set {Trigger::%player%} to true" so its always going to shoot. i was saying once you click it will never stop even if you click againOf course, he need right clicked again.
i added a check if is set, the it stopped the evetns? what the problem?no matter how many times you click it always ends on "set {Trigger::%player%} to true" so its always going to shoot. i was saying once you click it will never stop even if you click again