Will there ever be an additional setting for the Item Granter to allow Class Index? At the moment, it only has access to give items to triggering players, all players, and teams. But there is no way to grant items to certain classes. Can this be added in a future update possibly?
Hey @IAmWhip how are you?
I assume based on the tags in your post that you are using UEFN. There are some ways to do this but you will need to implement some Verse code.
What you could do to grant items based on the players’ class is to create a “var PlayerClasses : [player]string = map{}” (is like an array but with a value linked to another, a String linked to each player in this case) and change the string for the corresponding players when they change classes. By doing that, you will be able to check in that map the class of each player and grant the items only to those players.
GrantItemToTargetClass() : void =
for (Player -> Class : PlayerClasses):
if (Class = TargetClass): # "TargetClass" is a variable of type "string" to cmopare with the players' class
ItemGranter.GrantItem(Player)
Let me know if this works or if you need more help to implement this!