SetDefaultSpawnLocation

From RAGE Multiplayer Wiki
Revision as of 10:42, 12 December 2019 by Bonus (talk | contribs) (Created page with "Sets the default spawn location (e.g. on autorespawn). {{CSharpContainer| {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Server.SetDefaultSpawnLocation(Vector3 locat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sets the default spawn location (e.g. on autorespawn).


C# Syntax

void NAPI.Server.SetDefaultSpawnLocation(Vector3 location, [float heading = 0]);

Parameters

  • location: parameter input should be in Vector3 type
  • heading: parameter input should be in float type

Example

NAPI.Server.SetDefaultSpawnLocation(new Vector3(0, 100, 100), 180);