Skip to main content
$12256 / $11500
About
Rules
Blog
FAQ
Style
Forum
Is it possible to allow the player to summon an enemy (not a helper, something to fight)?
FLARE [ARCHIVED]
Is it possible to allow the player to summon an enemy (not a helper, something to fight)?
TakeAShower
Thursday, October 25, 2018 - 12:25
I just whant to know if it's possible - it will be useful for testing purposes.
Theres a few different ways to spawn enemies. You could instantiate a enemy on a key press or enter a trigger collider to spawn the enemy so I would say yes.
This can be done with Events (map/script events or via the "exec" dev console command):
spawn=<enemy category>,<X>,<Y>
So spawn=goblin,10,20 will spawn any enemy with the category "goblin" at position (10,20). If you want to spawn a specific enemy, it will need to have a unique category as part of its "categories" variable.
But this does not give much control over the number spawned - it takes a while to spawn 20 or so...