AGameModeBase::SpawnDefaultPawnFor

Called during RestartPlayer to actually spawn the player's pawn, when using a start spot

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h

Include

#include "GameFramework/GameModeBase.h"

Syntax

APawn * SpawnDefaultPawnFor
(
    AController * NewPlayer,
    AActor * StartSpot
)

Remarks

Called during RestartPlayer to actually spawn the player's pawn, when using a start spot

Returns

a pawn of the default pawn class

Parameters

Parameter

Description

NewPlayer

Controller for whom this pawn is spawned

StartSpot

Actor at which to spawn pawn

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss