1 |
Damn, youre right. There must be something else wrong with my code.
|
1 |
Damn, youre right. There must be something else wrong with my code.
|
2 |
Here is something that REALLY doesnt work:
|
2 |
Here is something that REALLY doesnt work:
|
3 |
\n
|
3 |
\n
|
4 |
[...]
|
4 |
[...]
|
5 |
for wdname, wd in pairs(ud.weapondefs) do
|
5 |
for wdname, wd in pairs(ud.weapondefs) do
|
6 |
for wi, w in ipairs(ud.weapons) do
|
6 |
for wi, w in ipairs(ud.weapons) do
|
7 |
if wdname == w["def"] then -- DOESNT WORK
|
7 |
if wdname == w["def"] then -- DOESNT WORK
|
8 |
[...]
|
8 |
[...]
|
9 |
\n
|
9 |
\n
|
10 |
Why is wdname never equal to w.def? Def must be equal to wdname, but the code doesnt trigger. If I set to "true", the code below triggers.
|
10 |
Why is wdname never equal to w.def? Def must be equal to wdname, but the code doesnt trigger. If I set to "true", the code below triggers.
|
|
|
11 |
\n
|
|
|
12 |
Example, weapons & weaponsdef
|
|
|
13 |
https://github.com/ZeroK-RTS/Zero-K/blob/master/units/cloakraid.lua
|