Esempio n. 1
0
 public static void HideIfCharacterCreated()
 {
     if (instance is not null &&
         CharacterCreationSystem.SharedIsCharacterCreated(ClientCurrentCharacterHelper.Character))
     {
         instance.RemoveControl();
     }
 }
Esempio n. 2
0
        public static void SpawnPlayer(ICharacter character, bool isRespawn)
        {
            ServerAddTorchItemIfNoItems(character);

            if (character.IsInitialized &&
                CharacterCreationSystem.SharedIsCharacterCreated(character))
            {
                PlacePlayer(character, isRespawn);
            }
            else
            {
                // first time spawn, requires character creation
                CharacterDespawnSystem.DespawnCharacter(character);
            }
        }