Added "SpawnAzazel" function

This commit is contained in:
Jadis
2022-09-08 12:08:24 +03:00
committed by GitHub
parent 48cd33e6df
commit 0f04804290

View File

@@ -43,6 +43,15 @@ namespace DevourClient.Hacks
nb.locomotion.SetPosition(pos, false);
}
public static void SpawnAzazel(PrefabId _azazelPrefabId)
{
GameObject _azazel;
Vector3 pos = Player.GetPlayer().transform.position;
_azazel = BoltNetwork.Instantiate(_azazelPrefabId, new Vector3(pos.x, pos.y, pos.z + 1f), Quaternion.identity);
_azazel.gameObject.GetComponent<SurvivalAzazelBehaviour>().Spawn();
}
public static void AutoRespawn()
{