class StopVFXEffector extends Effector
{
	var m_vfxName : CName;
	var m_owner : weak< GameObject >;

	protected override function Initialize( record : TweakDBID, game : GameInstance, parentRecord : TweakDBID )
	{
		m_vfxName = TweakDBInterface.GetCName( record + T".vfxName", '' );
	}

	protected override function ActionOn( owner : GameObject )
	{
		m_owner = owner;
		GameObjectEffectHelper.StopEffectEvent( m_owner, m_vfxName );
	}

}

class StopSFXEffector extends Effector
{
	var m_sfxName : CName;
	var m_owner : weak< GameObject >;

	protected override function Initialize( record : TweakDBID, game : GameInstance, parentRecord : TweakDBID )
	{
		m_sfxName = TweakDBInterface.GetCName( record + T".sfxName", '' );
	}

	protected override function ActionOn( owner : GameObject )
	{
		m_owner = owner;
		GameObject.PlaySound( m_owner, m_sfxName, 'Scripts:StopSFXEffector:ActionOn' );
	}

}

