Quaternion.Euler but with Vector 3

Hello I would like to use
Quaternion.Euler to as a position but then use vector 3 to put the position of a certain gameobject.
basically im gonna launch torpedos and then use Quaternion.Euler to spawn new ones (i think), but i wanna copy the position of my sub using vector 3.
pls help and if this is not possbile pls tell me how i can do this otherwise

I would like to know if this is possible and if so how thx.

void LaunchTorpedo()
{

if (Time.time >= nextFire)
{
Instantiate (torpedo, transform.position, Quaternion.EulerQuaternion.Euler(positionx, positiony, positionz));
nextFire = Time.time + fireRate;

}

Do you mean you want to spawn torpedos and have them inherit the same rotation as the submarine?
If so, this is all that’s required (assuming transform here is the submarine’s transform):

Instantiate(torpedo, transform.position, transform.rotation);

Hello, well the whole reason i was doing this was to not use Quaternion.identity to ot reset the rotation, but would your code work without the transform.rotation?

I still don’t understand. Do you mean you just want to instantiate the object without setting its rotation?
For that, you can just do this:

GameObject torpedoInstance = Instantiate(torpedo);
torpedoInstance.transform.position = transform.position;