function writequitt_init(e)
end
function writequitt_main(e)
I am trying to add a behavior to my Files\scriptbank\user\writequitt.lua
I also have a writequitt.png
It is not showing up in GGMAX. Here is the code, Game Guru had no issues with it. What am I missing? Thanks!
if g_Entity[e]['plrinzone']==1 then
file = io.open("mytextfile.txt", "w")
io.output(file)
io.write("Some text...")
io.close(file)
QuitGame()
FinishLevel()
Destroy(e)
end
end