Gameplay Effect Items
Gameplay Effect Items are regular Narrative Items that are intended to work for GAS abilities granting effects to the character who picks it up.
Creation
Right-click in the Content Drawer -> Narrative -> Narrative Items -> Gameplay Effect Item.
Now you can choose what gameplay effect and values you want to apply.
Increasing health
A common use for a gameplay effect item is to have an item that heals the player.
You can set the Gameplay Effect Class to GE_ItemGameplayEffect then set a singular Caller Value to the gameplay tag SetByCaller.Health
.
Finally, set the value to the amount of health you want to increase.
Decreasing health over time
Another common example would be decreasing health over time. Such as a poison like effect.
For this, you can set the Gameplay Effect Class to GE_ItemGameplayEffect then set two Caller Value.
The first has a gameplay tag SetByCaller.Health
and a value of how much you want to decrease.
The second has a gameplay tag SetByCaller.Duration
and a value of how long (in seconds) you want it to last.
Properties
Name | Type | Description |
---|---|---|
GameplayEffectClass | GameplayEffect | The class of the gameplay effect to apply. This is an instant effect that overrides certain character attributes. |
SetByCallerValues | TMap<FGameplayTag, float> | A map of tags and their corresponding values, used for specifying "SetByCaller" attributes in gameplay effects. |