Scripts / Adding a script/behavior to GGMax

Author
Message
thatandplaygames
4
Years of Service
User Offline
Joined: 12th Feb 2020
Location: In a creative space
Posted: 23rd Mar 2022 13:01
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
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 23rd Mar 2022 13:10 Edited at: 23rd Mar 2022 13:12
You need to add a description to the top of your script for it to show in Max.
Actually very handy if you want to add a full description of what it does.

--DESCRIPTION:my-script

function writequitt_init(e)
end
etc
No one ever really leaves.
PM
thatandplaygames
4
Years of Service
User Offline
Joined: 12th Feb 2020
Location: In a creative space
Posted: 23rd Mar 2022 13:17
synchromesh, you are fantastic! Thank you! It is HANDY to have a full description of what it does.

Thanks!

Login to post a reply

Server time is: 2024-12-22 01:33:42
Your offset time is: 2024-12-22 01:33:42