I'm aware how it's possible to play sounds with the command aSound.Play with aSound being the name of the audio file to be played.
Is there a way to have the command play a certain audio file by just supplying a variable?
Example:
For a RPG I made a struct for all the items in the game that handles all the items' properties like names, graphic, cost etc. I'd like to make a new entry for the struct to store a specific audio file for each item that I can later play by referring to the structs audio variable.
Is there a way to have the command play a certain audio file by just supplying a variable?
Example:
For a RPG I made a struct for all the items in the game that handles all the items' properties like names, graphic, cost etc. I'd like to make a new entry for the struct to store a specific audio file for each item that I can later play by referring to the structs audio variable.