Scripts / [SOLVED] Learning lua with gameguru please help

Author
Message
mnemonic
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 15th Mar 2019 09:26

function myLuaTest_init(e)

end

function myLuaTest_main(e)
Prompt("Hello world")
end


above is my code. But it wont work. I have attached the script to a barrel.
Even if the player is close it wont display the prompt. The filename is also named myLuaTest.
What have I missed?

Thanks in beforehand.
www.memblockgames.com

The author of this post has marked a post as an answer.

Go to answer
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 15th Mar 2019 10:03
This post has been marked by the post author as the answer.
Change the name to all lowercase.
Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2024-12-22 14:39:52
Your offset time is: 2024-12-22 14:39:52