Skip to main content

SpawnPlayer

Spawns the player.

  • player: parameter input should be in Player type
  • pos: parameter input should be in Vector3 type

Optional:

  • heading: parameter input should be in float type. Default: 0.

{{#tag:syntaxhighlight| Player.SpawnPlayer(player, new Vector3(0, 100, 100)); |lang=csharp}} }}