peteralto
Member
- Joined
- Nov 1, 2020
- Messages
- 95
- Solutions
- 1
- Reaction score
- 19
If there is something occupying the tile, the script does not create the monster forcibly and the script stop working. Is there anything that can be done to force the spawn?
I already tried to change this:
to this:
but the error still occurs.
TFS 1.3 Downgrade
Lua:
local bossInfo = {
name = "Demon",
position = Position(31546, 30324, 9)
}
local function createBoss()
local boss = Game.createMonster(bossInfo.name, bossInfo.position)
if not boss then
error(string.format("Error while spawning %s.", bossInfo.name))
end
end
I already tried to change this:
Lua:
local boss = Game.createMonster(bossInfo.name, bossInfo.position)
Lua:
local boss = Game.createMonster(bossInfo.name, bossInfo.position, true, true)
TFS 1.3 Downgrade