class ReloadWeaponEffector extends Effector
{
	private var m_owner : weak< GameObject >;

	protected override function ActionOn( owner : GameObject )
	{
		var weapon : weak< WeaponObject >;
		var reloadEvent : ForceResetAmmoEvent;
		m_owner = owner;
		weapon = ScriptedPuppet.GetWeaponRight( m_owner );
		if( weapon )
		{
			reloadEvent = new ForceResetAmmoEvent;
			reloadEvent.SetTargetValue( ( ( Int32 )( WeaponObject.GetMagazineCapacity( weapon ) ) ) );
			m_owner.QueueEvent( reloadEvent );
		}
	}

}

