Attach weapon using C++

With this code:

[CODE]
void ALaserTagCharacter::BeginPlay()
{
	FActorSpawnParameters spawnParams;
	spawnParams.Owner = this;

	AMyWeapon* wep = GetWorld()->SpawnActor<AMyWeapon>(AMyWeapon::StaticClass(), spawnParams);
	if (wep)
	{
		wep->AttachWeaponToPawn(GetWorld()->GetFirstPlayerController()->GetPawn(), TEXT("HeroTPP"));
	}
}
[/CODE]

I’m able to see the MyWeapon class show up in the scene outliner when I run the game, but there is no weapon mesh. I think I may be using the AttachWeaponToPawn method incorrectly, or I misunderstood its intended purpose.