Merge pull request #17 from jadis0x/patch-9

Added "SpawnAzazel" function
This commit was merged in pull request #17.
This commit is contained in:
ALittlePatate
2022-09-08 14:25:05 +02:00
committed by GitHub

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()
{