<EDIT>I moved the spawning thing to et_InitGame, still the same error:
Code: Select all
********************
ERROR: G_SpawnString() called while not spawning, file g_spawn.c, line 839
********************
Code: Select all
function et_InitGame(levelTime, randomSeed, restart)
-- spawn a dinghy, yay!
if (et.trap_Cvar_Get("mapname") == "battery") then
ent = et.G_SpawnGEntityFromSpawnVars("scriptname", "dinghy1", "origin", "2650 600 100", "classname", "misc_gamemodel", "modelscale", "1", "contents", "1", "mins", "-90 -90 -25", "maxs", "90 90 25", "clipmask", "1", "model", "models/mapobjects/dinghy_sd/dinghy.md3")
end
end