You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nshun1896 opened this issue
Jan 4, 2025
· 2 comments
Labels
2.10Targeting a 2.10.X version releasebugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.
inputting key just a moment will cause infinite while loop in the below script.
on player pressing of any input key:
if event-inputkeys is forward movement key:
wait a tick
while player is pressing forward movement key:
broadcast loop-counter and current input keys of player
wait a tick
on player pressing of any input key:
if event-inputkeys is forward movement key:
wait a tick
while current input keys of player is forward movement key:
broadcast loop-counter and current input keys of player
wait a tick
Expected Behavior
script in while loop should be run only while input key is pressed.
Steps to Reproduce
paste above code and run.
you had better add the code below into the last part of while loop above.
if loop-counter is more than 10:
stop
Errors or Screenshots
No response
Other
No response
Agreement
I have read the guidelines above and affirm I am following them with this report.
The text was updated successfully, but these errors were encountered:
In other event like below, the condition "Is Pressing Key" works.
So, It seems that in the event "on player pressing of any input key", current input keys may be kept until the event stops.
on jump:
wait a tick
while player is pressing jump key:
push player upward at speed 0.1
wait a tick
sovdeeth
added
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
2.10
Targeting a 2.10.X version release
labels
Jan 5, 2025
APickledWalrus
added
completed
The issue has been fully resolved and the change will be in the next Skript update.
and removed
PR available
Issues which have a yet-to-be merged PR resolving it
labels
Jan 14, 2025
2.10Targeting a 2.10.X version releasebugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.
Skript/Server Version
Bug Description
inputting key just a moment will cause infinite while loop in the below script.
Expected Behavior
script in while loop should be run only while input key is pressed.
Steps to Reproduce
paste above code and run.
you had better add the code below into the last part of while loop above.
Errors or Screenshots
No response
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: