SpawnPlayer

From RAGE Multiplayer Wiki
Revision as of 13:56, 23 December 2022 by Xabi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Spawns the player.


C# Syntax

void NAPI.Player.SpawnPlayer(Player player, Vector3 pos, [float heading = 0]);

Parameters

  • 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.

Example

NAPI.Player.SpawnPlayer(player, new Vector3(0, 100, 100));