#Can functions return lists?

1 messages · Page 1 of 1 (latest)

formal whale
#

This is my first time coding anything in skript and I love lists/arrays. I have searched the docs trying to find if you can return lists but I cant find anything on it.
If you need to see the rest of the code, lmk

hot oracle
#

a list is just a single type, but with an added s
if you're returning a list containing a bunch of strings, it would be strings
if you're returning a list containing a bunch of players, it would be players
alternatively, if you have a list containing a bunch of different elements or unknown elements, you can return objects