# How to set different Pawn Data Assets per team for Lyra in the Experience Definition?

**URL:** <https://forums.unrealengine.com/t/how-to-set-different-pawn-data-assets-per-team-for-lyra-in-the-experience-definition/593280>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine, LyraStarterGame\
**Created:** [June 29, 2022, 11:01am UTC](https://forums.unrealengine.com/t/how-to-set-different-pawn-data-assets-per-team-for-lyra-in-the-experience-definition/593280 "2022-06-29T11:01:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FartJuise](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FartJuise](https://forums.unrealengine.com/u/FartJuise)\
**Post date:** [June 29, 2022, 11:01am UTC](https://forums.unrealengine.com/t/how-to-set-different-pawn-data-assets-per-team-for-lyra-in-the-experience-definition/593280/1 "2022-06-29T11:01:33Z")

</div>

So I’m trying to tweak Lyra’s Elimination Experience so that I can have different Pawn Data Assets for each team (2), but I’m struggling.

The idea is that I want there to be 2 separate teams - one team essentially using the basic Third Person Shooter setup (that is already in the game), whilst the second team will have different abilities and pawn data that can be assigned in the lobby. The second team will be quite different too - they won’t use weapons, will be mostly ability based, and will have multiple different Pawn Classes to choose from (i.e. ghost, spider, etc.), and therefore different skeletons and animation blueprints.

In the Elimination Experience Definition (B\_ShooterGame\_Elimination), you can only have 1 Default Pawn Data asset (currently HeroData\_ShooterGame), and within that pawn data asset you can only have one pawn class (currently B\_Hero\_ShooterMannequin). Most other modules within the Lyra Data Assets can have multiple inputs, but these seem somewhat restricted.

I understand the B\_PickRandomCharacter Component adds a character part to the cosmetic system and changes the displayed mannequin, however as I’m using different skeletons, and some of them will be too different to retarget the Lyra animations, I don’t believe this will work.

Does anyone have any ideas of where to start trying to set this up? Thanks very much in advance

---

<div class="post-metadata">

**Author:** ![pom\_bo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pom\_bo](https://forums.unrealengine.com/u/pom_bo)\
**Post date:** [October 17, 2022, 8:00pm UTC](https://forums.unrealengine.com/t/how-to-set-different-pawn-data-assets-per-team-for-lyra-in-the-experience-definition/593280/3 "2022-10-17T20:00:44Z")

</div>

Hey there! Did you find a solution for this? I’m kinda having the same doubts as you did apparently. I would greatly apreciate any directions you might give me, thanks!

---

<div class="post-metadata">

**Author:** ![JediKnightChan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jediknightchan/32/1156960_2.png) [@JediKnightChan](https://forums.unrealengine.com/u/JediKnightChan)\
**Post date:** [December 28, 2022, 12:14pm UTC](https://forums.unrealengine.com/t/how-to-set-different-pawn-data-assets-per-team-for-lyra-in-the-experience-definition/593280/4 "2022-12-28T12:14:33Z")

</div>

While this doesn’t seem possible in Lyra, as pawn data is set by experience on playerstate and then initialized on pawnextensioncomp in GameMode spawn method, I did this:

1. Moved PawnData from PlayerState to Character:

```auto
UPROPERTY(ReplicatedUsing = OnRep_PawnData, EditAnywhere, BlueprintReadOnly,
		meta=(AllowPrivateAccess="true", ExposeOnSpawn="true"))
	const UECRPawnData* PawnData;

```

1. Initialized on pawnextcomp not from gamemode, but from Character::PossessedBy:

```auto
void AECRCharacter::PossessedBy(AController* NewController)
{
	Super::PossessedBy(NewController);

	PawnExtComponent->HandleControllerChanged();

	UE_LOG(LogTemp, Warning, TEXT("Pawn data is %s"), *(GetNameSafe(PawnData)));

	if (GetWorld()->GetNetMode() < NM_Client)
	{
		UE_LOG(LogTemp, Warning, TEXT("Initting pawn data as server"));
		PawnExtComponent->SetPawnData(PawnData);
		InitPawnData();
	}
}

```

More details: [Use custom classes via config, moved pawndata from PlayerState to ECR… · JediKnightChan/EternalCrusadeResurrection@d3c74be · GitHub](https://github.com/JediKnightChan/EternalCrusadeResurrection/commit/d3c74bed98ea536015d5543a4b46ce314f2d7838)  
UPD: Fix for crash on listen servers: [Fix: on listen servers init pawn data now doesn't crash · JediKnightChan/EternalCrusadeResurrection@2d1e5e6 · GitHub](https://github.com/JediKnightChan/EternalCrusadeResurrection/commit/2d1e5e63bf24dd9f4b7fe01955503056abee956b)

---

<div class="post-metadata">

**Author:** ![BaseReality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/basereality/32/893179_2.png) [@BaseReality](https://forums.unrealengine.com/u/BaseReality)\
**Post date:** [September 8, 2023, 2:48pm UTC](https://forums.unrealengine.com/t/how-to-set-different-pawn-data-assets-per-team-for-lyra-in-the-experience-definition/593280/5 "2023-09-08T14:48:06Z")

</div>

Is this still the only and best option, Im not a c++ programmer and this stuff  
is confusing. But I Am advanced in Blueprints. I for the life of me do not know why Epic released such an amazing project like Lyra and made the entry bar too high for most to even use it.  
I mean there should at a bare minimum be options to set teams and an Option to have different characters that do not rely on the player character BP like requested above. I also just want the bots to remain as they are, and use a custom BP character THAT I CREATED OUTSIDE OF LYRA

Just a simple option to add other bot classes to the experience definition would be huge

---

<div class="post-metadata">

**Author:** ![patternfall2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@patternfall2](https://forums.unrealengine.com/u/patternfall2)\
**Post date:** [December 4, 2024, 2:44am UTC](https://forums.unrealengine.com/t/how-to-set-different-pawn-data-assets-per-team-for-lyra-in-the-experience-definition/593280/6 "2024-12-04T02:44:59Z")

</div>

Use this: [Guide: Adding different hero classes to LYRA](https://forums.unrealengine.com/t/guide-adding-different-hero-classes-to-lyra/2168835)

In BP, fire the function from the Observe Team listener node and have it assign a specific PawnData depending on which team the pawn is assigned.
