Most Optimal Method for Unlockable Abilities?
There is a system in my game, where as you progress through the game as well as by gaining levels, certain abilities will unlock. However, I am having a hard time deciding if I should go about doing this with an array of booleans or if I should make individual booleans for each character and turn them on/off. However, I am not sure which is the most optimal or the most preferable. Or maybe there is an even better method, that I am not aware of. Was hoping to hear some feedback as to how some would approach this method.
asked May 09 '18 at 07:50 AM in Blueprint Scripting
Create a master Ability blueprint - an Actor Component. Encapsulate logic and variables all abilities share.
Create a child for each ability providing they need unique functionality. Give the player character all abilities but keep them disabled. Enable as needed.
The following video is a foot in the door of the components how-to:
Follow this question
Once you sign in you will be able to subscribe for any updates here