#can ther be optional functions usage?

1 messages · Page 1 of 1 (latest)

flat flame
#

function handleMine(resourceType: string, blockStats: string, item1: string, item2: string, item3: string, p: player, option: boolean=False):

#

basically, you don't need to pass a argument in for the last thing so it defaults to false

#

you can change the boolean type to anything btw but the default option has to match or be like a local variable ie: {_e} so the argument would default to be not set

#

i am assuming this is what you mean since you mentioned 3 of the arguments are mine item types and you want optional functions usage