Method SpawnMonster
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
SpawnMonster(string, int, MonsterRank, float)
Spawn a monster by name (must exist in MonsterPool.MonsterPrefabs). Placement is NavMesh-sampled near the hero. Yield a frame after calling to let it initialize.
protected MonsterRankBehaviour SpawnMonster(string monsterName, int level = 1, MonsterRank rank = MonsterRank.Common, float distance = 3)
Parameters
monsterNamestringlevelintrankMonsterRankdistancefloat