Configure the Gameplay Ability System
Using Ninja GAS, you can configure the Gameplay Ability System in your project and prepare your Player Character, so it can use the Combat Attribute Set provided by Ninja Combat.
Follow the steps from the Ninja GAS setup page.
Follow the steps from the Ninja Combat setup page.
Create a Data Table using
AttributeMetaData
as the row type.Save the sample Json data to your computer and import it in your Data Table, by pressing the Reimport button.
Create a GAS Setup, either using the contextual menu or creating a data asset based on
NinjaGASDataAsset
.Make sure to create this Data Asset in the folder configured in the Asset Manager, during the initial setup for Ninja G.A.S..
Open the Data Asset, add a new entry to Default Attribute Sets and set
NinjaCombatAttributeSet
to Attribute Set Class. As for the Attribute Table, add the Data Table created on the previous step.Add a new entry to Default Gameplay Effects and set
CombatEffect_ReplenishStamina
to Gameplay Effect Class, this will be useful later!
Open your Character Blueprint and reparent it to
NinjaGASPlayerCharacter
.In your player Animation Blueprint, add a slot for the Attack Abilities, such as Default Slot or Full Body for example.
tip
You can also create a new character if you prefer. If you do, then make sure to set the proper base class and configure it in your Game Mode!