March 2019
Intermediate to advanced
708 pages
17h 9m
English
In the following steps, we'll construct a quick GameplayEffect that heals 50 hp to the selected unit's AttributeSet:
void TestGameplayEffect();
inline UGameplayEffect* ConstructGameplayEffect(FString name){ return NewObject<UGameplayEffect>(GetTransientPackage(), FName(*name));}inline FGameplayModifierInfo& AddModifier( UGameplayEffect* Effect, UProperty* Property, EGameplayModOp::Type Op, const FGameplayEffectModifierMagnitude& Magnitude){ int32 index = Effect->Modifiers.Num(); Effect->Modifiers.SetNum(index + 1); FGameplayModifierInfo& Info = Effect->Modifiers[index]; ...Read now
Unlock full access