Перейти к содержанию

SetDefaultSpawnLocation

Материал из RAGE MP Wiki Archive
Версия от 10:42, 12 декабря 2019; imported>Bonus (Created page with "Sets the default spawn location (e.g. on autorespawn). {{CSharpContainer| {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Server.SetDefaultSpawnLocation(Vector3 locat...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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


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

<syntaxhighlight lang="csharp"> NAPI.Server.SetDefaultSpawnLocation(new Vector3(0, 100, 100), 180); </syntaxhighlight>