SpawnPlayer

From The KillerJim Mod Wiki

Gamemode::SpawnPlayer

SpawnPlayer.png

Server Only Function - This is an function executes only on the server.

Description

This will spawn a player into the world at one of the level's existing "Player Start" points. The supplied parameter is an object that inherits from the KJModPlayerProxy actor, which is usually created using UE4's "SpawnActor" during the "PlayerHasJoined" event that your GameMode will receive.

The player proxy should be correct initialized through the Player Proxy Initialise function before calling this. Normally this chain is called from the Game-mode's "Player Has Joined, i.e. from "Player Has Joined" event, call Initialise, then call this function. However you can delay spawning the player (leaving this as a spectator) for as long as you want.

Arguments
1 KJModPlayerProxy playerProxy
This will spawn a player into the world at one of the level's existing "Player Start" points. The supplied parameter is an object that inherits from the KJModPlayerProxy actor, which is usually created using UE4's "SpawnActor" during the "PlayerHasJoined" event that your GameMode will receive.

Playing

Developers

Developer Reference