17 lines
440 B
C++
17 lines
440 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "ElimAnnouncement.h"
|
|
|
|
#include "Components/TextBlock.h"
|
|
|
|
void UElimAnnouncement::SetElimAnnouncementText(FString AttackerName, FString VictimName)
|
|
{
|
|
FString ElimAnnouncementText = FString::Printf(TEXT("%s killed %s"), *AttackerName, *VictimName);
|
|
|
|
if (AnnouncementText)
|
|
{
|
|
AnnouncementText->SetText(FText::FromString(ElimAnnouncementText));
|
|
}
|
|
}
|