Added "SpawnAzazel" function #17

Merged
jadis0x merged 1 commits from patch-9 into master 2022-09-08 12:25:05 +00:00
Showing only changes of commit 0f04804290 - Show all commits

View File

@@ -43,6 +43,15 @@ namespace DevourClient.Hacks
nb.locomotion.SetPosition(pos, false); 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() public static void AutoRespawn()
{ {