Page MenuHomeFeedback Tracker

GetParticleEntity() is not working with MuzzleEffectComponent / BaseEffectComponent
Assigned, NormalPublic

Description

GetParticleEntity() is not working for MuzzleEffectComponent (BaseEffectComponent)

If you try to get the assigned ParticleEntitny for a Gun Muzzle, it always return NULL

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Steps To Reproduce
		array<Managed> EffectArray = {};		
		IWeapon.FindComponents(MuzzleEffectComponent, EffectArray);
				
		if(EffectArray.Count() > 0) {			
			foreach (Managed ManagedEffectComp : EffectArray) {	
				
				BaseEffectComponent EffectComp = BaseEffectComponent.Cast(ManagedEffectComp);
			 	IEntity EffectEnt = EffectComp.GetParticleEntity();				
				ParticleEffectEntity PEffectEnt = ParticleEffectEntity.Cast(EffectComp.GetParticleEntity());
				
				Print(EffectComp);
				Print(EffectEnt);
				Print(PEffectEnt);
				
			}					
		}

Event Timeline

R34P3R created this task.Dec 25 2023, 6:44 PM
Geez changed the task status from New to Assigned.Jan 2 2024, 1:59 PM