Created Phone and Sitting NPC Stations

This commit is contained in:
Rafal Swierczek 2024-05-12 17:29:53 +01:00
parent f7863a044e
commit 956da86677
7 changed files with 16 additions and 8 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5354163019daaef6eff01d29d537e7d0d23b07061c8c3e3f994de58530e23c4c
size 45628643
oid sha256:0f4ddd99ae436966b035dab3847c98a0c692c6e09f9831558701d2f16ff62232
size 45628591

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1acb6660017311f77173210ac33665efdb57a18f7401aab1697ce2fba3256cdd
size 23496
oid sha256:63ffe0b4c154e713c7e877c55b167bbc17f5aa836f13c31b159bcf0a2ed5b54b
size 23832

Binary file not shown.

Binary file not shown.

View File

@ -39,6 +39,8 @@ void ANPC_Station::BeginPlay()
{
Super::BeginPlay();
PlayersPawn = UGameplayStatics::GetPlayerPawn(GetWorld(), 0);
FRotator RandomRot = FRotator(0, FMath::RandRange(0, 360), 0);
GetRootComponent()->SetRelativeRotation(RandomRot);
}
// Sets default values