Hi guys,

I have some problems with a particle system and I hope you can help me.
First off a little video to show you my problem:



1. I want the tower to shoot in a straight line at the enemy. I'm currently using the 'WP_LinkGun.Effects.P_WP_Linkgun_Altbeam' for this effect. How can I do this? All the FiringComponent.Set[...] functions don't seem to work.

2. I would like to change the location of the emitter after spawning. So that I can correct the location, when the Tower has turned its direction. I also didn't figure out how to do this yet.

3. I tried to reuse the same ParticleEmitter with "DeactivateSystem" and activating it again by "ActivateSystem", but it didn't work. So I guess the Emitter is killed automatically, when I'm using "DeactivateSystem". Am I right?

Here is my code:

Code:
var ParticleSystemComponent FiringComponent;
var ParticleSystem FiringSystem;
var Vector FiringLocation;
[...]
state Attacking
{
	simulated event BeginState(name PreviousStateName)
	{
		[...]
		FiringLocation = OwnerTower.Location + Vector(OwnerTower.Rotation)*30;
		FiringLocation.Z+=50;
		FiringComponent = WorldInfo.MyEmitterPool.SpawnEmitter(FiringSystem, FiringLocation);
		FiringComponent.SetVectorParameter('LinkBeamEnd', Target.Location);
		FiringComponent.SetDepthPriorityGroup(SDPG_World);
	}

	simulated event EndState(name NextStateName)
	{
		WorldInfo.Game.Broadcast(self,"Laser leaving State Attacking");
		FiringComponent.DeactivateSystem();
	}

	event Tick(float DeltaTime)
	{
		[...]
		FiringLocation = OwnerTower.Location + Vector(OwnerTower.Rotation)*30;
		FiringLocation.Z+=50;
		FiringComponent.SetVectorParameter('LinkBeamEnd', Target.Location);
		FiringComponent.SetBeamDistance(-1, VSize(FiringLocation-Target.Location));
		[...]
	}
}