void URPGEffectBase::Initialize() { IsEffectActive = false; EffectsRemoved = 0; if(AffectedTarget) { UWorld* world = GetCurrentWorld(AffectedTarget); if(CurrentWorld) { //OnEffectAppiled_Implementation(); OnEffectAppiled(); IsEffectActive = true; } } }
bool URPGEffectPeriodic::Initialize() { Super::Initialize(); if (Target) { TotalDuration = PeriodLenght * PeriodsCount; IsEffectActive = true; OnEffectActivation.Broadcast(this->GetClass(), IsEffectActive); OnEffectAppiled(); OnEffectInitialized(); OnEffectPostInitialized(); return true; } return false; }