1 |
thanks.. ill rty to help you.
|
1 |
thanks.. ill rty to help you.
|
2 |
\n
|
2 |
\n
|
3 |
this is how i do things: i add 1 piece of code at a time to test it.
|
3 |
this is how i do things: i add 1 piece of code at a time to test it.
|
4 |
\n
|
4 |
\n
|
5 |
for example:
|
5 |
for example:
|
6 |
\n
|
6 |
\n
|
7 |
for name, ud in pairs(UnitDefs) do
|
7 |
for name, ud in pairs(UnitDefs) do
|
8 |
if ud.weapondefs then
|
8 |
if ud.weapondefs then
|
9 |
for weaponname, wd in pairs(ud.weapondefs) do
|
9 |
for weaponname, wd in pairs(ud.weapondefs) do
|
10 |
if wd.range then
|
10 |
if wd.range then
|
11 |
wd.range = wd.range * 100
|
11 |
wd.range = wd.range * 100
|
12 |
end
|
12 |
end
|
13 |
end
|
13 |
end
|
14 |
end
|
14 |
end
|
|
|
15 |
end
|