Manually setting Team ID in Lyra..?

Under LyraTeamSystem.h there is a public method not exposed to Blueprint

// Changes the team associated with this actor if possible
// Note: This function can only be called on the authority
bool ChangeTeamForActor(AActor* ActorToChange, int32 NewTeamId);

I’m checking to see what happens if I update to this:

// Changes the team associated with this actor if possible
// Note: This function can only be called on the authority
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = Teams, meta = (Keywords = "Set"))
bool ChangeTeamForActor(AActor* ActorToChange, int32 NewTeamId);`

Edit: This works! I was able to add a new blueprint that lets me change teams.

(Now we have to figure out how to instant-kill the player)

11 Likes