Azu Posted December 27, 2006 Share Posted December 27, 2006 Will I need to know ANY C/C++ to learn Lua? Just enough to use it for MTA? Link to comment
orappa Posted December 27, 2006 Share Posted December 27, 2006 You don't need to learn C++ at all. I learnt Lua just by looking at scripts that people had made, and the wiki documentation that we created. Link to comment
Robix Posted December 27, 2006 Share Posted December 27, 2006 Yep that's rely easy to learn!And im sure what someone will make example script like SWEP.Primary.ClipSize = 10 //And here go description what this comand do! This would be wery usefull for beginers! Link to comment
Hedning Posted December 27, 2006 Share Posted December 27, 2006 Now I want to learn Lua ^^ Link to comment
erorr404 Posted December 27, 2006 Share Posted December 27, 2006 Will I need to know ANY C/C++ to learn Lua? Just enough to use it for MTA? To code in LUA you will need basic programming knowledge, so knowing some other language like C++ will definately help. If you don't know one, then you should probably just start with LUA. Here is some documentation, you should know sections 2-5 at the very least: http://www.lua.org/pil/index.html Link to comment
The Beyond Posted December 27, 2006 Share Posted December 27, 2006 (edited) Hello world in LUA: # Hello World in lua print "Hello world" lol, that looks easy (source) I know pretty much about PHP, will that help? Edited December 27, 2006 by Guest Link to comment
erorr404 Posted December 27, 2006 Share Posted December 27, 2006 Hello world in LUA: # Hello World in lua print "Hello world" lol, that looks easy (source) I know pretty much about PHP, will that help? I bet it will since you probably know about functions and control structures. 'print' has no use in MTA though. Link to comment
Hedning Posted December 27, 2006 Share Posted December 27, 2006 What software should I use to script in Lua? Link to comment
lil Toady Posted December 27, 2006 Share Posted December 27, 2006 What software should I use to script in Lua? hmm, notepad or wordpad or anything else you want Link to comment
Hedning Posted December 27, 2006 Share Posted December 27, 2006 lol But I need something so I can check if it works. Link to comment
Robix Posted December 27, 2006 Share Posted December 27, 2006 Hmm ye you need somthink where you can check...like mta dm .... lol Or you can get GMOD 10 and script there.For example my 1 LUA code was gun for GMOD! After that i maked more guns then i maked a gamemode. Anyway if you are beginner you should not make a new script but edit already maked script. Link to comment
Brophy Posted December 27, 2006 Share Posted December 27, 2006 u could always use luaedit to check, tho i just use notepad++ now ive got used to it Link to comment
Oli Posted December 27, 2006 Share Posted December 27, 2006 On the C++ note, Lua is FAR simpler than C++ as a language, for 1 thing, Lua isn't really a "typed" language, like PHP, which makes things a lot easier for people with no experience. There are Lua tutorials all over the internet, just google for it. I had to learn it when i was first adding the scripting engine to the server so i could test if it was working properly, and it took me no time at all to get used to it. Link to comment
darkdreamingdan Posted December 27, 2006 Share Posted December 27, 2006 Yeah, Lua has been the first language ive ever learnt and i have become really fluent in it. As Oli said its a really "typed" language. When you read the code it almost sounds like a sentence (at least i find it does). Link to comment
The Beyond Posted December 27, 2006 Share Posted December 27, 2006 Yeah, Lua has been the first language ive ever learnt How do you know english then? Link to comment
darkdreamingdan Posted December 27, 2006 Share Posted December 27, 2006 Yeah, Lua has been the first language ive ever learnt How do you know english then? lol okay smart ass, i learnt English after learning Lua. i have a Lua -> english translater which is how i learnt. Link to comment
The Beyond Posted December 27, 2006 Share Posted December 27, 2006 Yeah, Lua has been the first language ive ever learnt How do you know english then? lol okay smart ass, i learnt English after learning Lua. i have a Lua -> english translater which is how i learnt. Link to comment
gooch Posted December 27, 2006 Share Posted December 27, 2006 sounds great maybe ill give Lua a try Link to comment
Azu Posted December 27, 2006 Author Share Posted December 27, 2006 Will we be able to do something with the SAMs? I want to try to make something like an UAV in BF2. Link to comment
Guest Posted December 27, 2006 Share Posted December 27, 2006 can smo tell me how i can learn LUA ^^ It sounds great and i want to learn it Link to comment
slick Posted December 28, 2006 Share Posted December 28, 2006 LUA is nice, has to be my favorite scripting language. Link to comment
BTH Posted December 28, 2006 Share Posted December 28, 2006 It's Lua not LUA, it's not an acronym but portugese for moon! Link to comment
Slothman Posted December 28, 2006 Share Posted December 28, 2006 heh, "Moon language" Link to comment
Recommended Posts