2 random things

  • Welcome to skUnity!

    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 community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

NightyNight

Member
Feb 21, 2017
20
0
0
random things:
1. let's say I have a list containing the scores of players. How can I get the largest element(s) out of this list without looping through it all? ex. like "random element out of {list::*}" except "largest element out of {list::*}"
2. can I check if a player is still hitting a block like on cosmic prisons so you cant hit any block but ore and it adds block damage while you're hitting the block but only if you're clicking
 
1. Sure, you could do that. Just make a function that returns the largest value.
2. Not sure what you mean
 
Status
Not open for further replies.