Here's the thing.
I tried to script spider eggs that explode when they are "killed" but the editor crashes when they are destroyed.
Anyone know why this is happening?
Editor crashes when a spawn script goes off
Editor crashes when a spawn script goes off
Sometimes, criminals are dogs
Re: Editor crashes when a spawn script goes off
One thing that might be causing the crash is if you are using the destroy() function... this seems to cause a crash if not correctly called.
Also, if your exploding egg script is wholly in the objects.lua (e.g. as part of the onDeath hook) then it is more likely to cause a crash if there's a problem and it can also be hard to debug... so it's often better if you call a function in a script entity.
If you're not aware, there's a good hatcing spider egg script in the modding documentation which you might be able to modify to your purpose.
http://www.grimrock.net/modding/how-to- ... ider-eggs/
Also, if your exploding egg script is wholly in the objects.lua (e.g. as part of the onDeath hook) then it is more likely to cause a crash if there's a problem and it can also be hard to debug... so it's often better if you call a function in a script entity.
If you're not aware, there's a good hatcing spider egg script in the modding documentation which you might be able to modify to your purpose.
http://www.grimrock.net/modding/how-to- ... ider-eggs/
Puzzle Frameworks - http://www.grimrock.net/forum/viewtopic.php?f=14&t=4564
Magic Pack - https://www.nexusmods.com/grimrock/mods/70
Area of Effect Spell System - http://www.grimrock.net/forum/viewtopic ... 150#p44382
Magic Pack - https://www.nexusmods.com/grimrock/mods/70
Area of Effect Spell System - http://www.grimrock.net/forum/viewtopic ... 150#p44382