Page 2 of 2
Re: Quick question: separate weapon Lua file not working
Posted: 15 Oct 2009, 00:16
by PTSnoop
The unit loads, but can't attack.
Same with
Code: Select all
weapons = {
{
def = "cubescoutlightning",
},
},
--
weapons = {
def = cubescoutlightning,
},
--
weapons = {
def = "cubescoutlightning",
},
But I've found out that
Code: Select all
weapons = {
"cubescoutlightning",
},
works fine. The only snag is I'm not sure how to add OnlyTargetCategories to weapons this way.
Re: Quick question: separate weapon Lua file not working
Posted: 15 Oct 2009, 01:27
by Argh
Hmm. Try onlytargetcategory outside the weapon brackets.
Re: Quick question: separate weapon Lua file not working
Posted: 15 Oct 2009, 04:01
by lurker
When I said argh was wrong about what he had posted at the time, I meant it. WeaponDefNames is a NOTHING inside of defs. And yes, since cubescoutlightning is not a variable but a string, it needs quotes. Argh is also entirely wrong about needing to use false/true instead of 0/1.
Re: Quick question: separate weapon Lua file not working
Posted: 15 Oct 2009, 05:04
by Argh
If you'd like to show a complete, how-do-you-do-this solution, be my guest
