Page 1 of 2
Give a unit different weapons via LUA? [Solved]
Posted: Wed Jul 22, 2009 4:34 pm
by General_Nate
How do you give a unit a different weapon via lua? Thanks!
Re: LUA Question
Posted: Wed Jul 22, 2009 4:35 pm
by Labj
Thats by the side files not the lua.
Re: LUA Question
Posted: Wed Jul 22, 2009 4:36 pm
by General_Nate
But I know that you can, people have been talking about it.
Re: LUA Question
Posted: Wed Jul 22, 2009 4:36 pm
by Labj
Do you have any link for the topics you say ?
Re: LUA Question
Posted: Wed Jul 22, 2009 4:48 pm
by General_Nate
I can't seem to find it. But I know I herd it somwhere... Oh well. Let's see if any one else knows about it.
Re: LUA Question
Posted: Wed Jul 22, 2009 4:49 pm
by Par3210
yes I wanted to know about it. Still no answer now..
Re: LUA Question
Posted: Wed Jul 22, 2009 4:51 pm
by Labj
If you want to do something like in the Big "L" that gives you a weapon, its still by sides.
Re: LUA Question
Posted: Wed Jul 22, 2009 4:52 pm
by Par3210
dude, he said he wanted to add a weapon via lua.
Re: LUA Question
Posted: Wed Jul 22, 2009 4:53 pm
by Labj
So its is before starting ?
Re: LUA Question
Posted: Wed Jul 22, 2009 4:54 pm
by General_Nate
Par3210 wrote:yes I wanted to know about it. Still no answer now..
Ah! That's where! So I'm
not crazy after all! Sorry for the new topic.....
Yes before starting!
Re: LUA Question
Posted: Wed Jul 22, 2009 4:55 pm
by Labj
So why ? isnt easier by the side ?
Re: LUA Question
Posted: Wed Jul 22, 2009 4:56 pm
by Par3210
no. It is easier by lua but you can still make mistakes with the lua...
I am asking how to do the lua one. But yes it is possible to do it by the sides's ODF too.
This may help - my topic -
http://www.gametoast.com/forums/viewtop ... 27&t=19521
Re: LUA Question
Posted: Wed Jul 22, 2009 4:59 pm
by Labj
I never heard about such a thing, maybe like a AddWeapon code ? does that excists?
Re: LUA Question
Posted: Wed Jul 22, 2009 5:00 pm
by General_Nate
That's what we are trying to find out! Why are you asking these questions?
Re: LUA Question
Posted: Wed Jul 22, 2009 5:01 pm
by Par3210
Labj wrote:I never heard about such a thing, maybe like a AddWeapon code ? does that excists?
I know what it is - it's not that - but I cannot remember the name! Arrgh! It's on the tip of my tongue..
General_Nate wrote:That's what we are trying to find out! Why are you asking these questions?
He wants to help I guess.
Re: LUA Question
Posted: Wed Jul 22, 2009 5:03 pm
by Labj
I justs asked if that excists, in any case an user that knows a lot about codding may know if that really is valid in-game
I will search about it.
EDIT: Hey let`s check the LUA functions topic !
Re: LUA Question
Posted: Wed Jul 22, 2009 5:06 pm
by RogueKnight
Yes, you can do it.
I'm not a LUA coder, but if you want to know about it, look for shoot me dead's topic on it, using the search function or going back a few pages.
Re: LUA Question
Posted: Wed Jul 22, 2009 5:06 pm
by -_-
Post Scripting ... the 15 minute mod
It's like we have a user-friendly search function for a reason or something.
Re: LUA Question
Posted: Wed Jul 22, 2009 5:07 pm
by Fierfek
It's done by using a SetClassPropert line in the lua. I don't know much about it - go read this article:
http://www.gametoast.com/forums/viewtop ... 27&t=13946
I think it's fairly easy to do.
Edit: Ah, forget this article - read
-_-'s one.
Re: LUA Question
Posted: Wed Jul 22, 2009 5:08 pm
by Labj
Hmm, that saves a lot of time.