Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework > AGameModeBase
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h |
Include | #include "GameFramework/GameModeBase.h" |
UFUNCTION (BlueprintNativeEvent, Category=Game)
APawn * SpawnDefaultPawnFor
(
AController * NewPlayer,
AActor * StartSpot
)
Remarks
Called during RestartPlayer to actually spawn the player's pawn, when using a start spot a pawn of the default pawn class
Parameters
Name | Description |
---|---|
NewPlayer | Controller for whom this pawn is spawned |
StartSpot | Actor at which to spawn pawn |