| 1 |
i
have
another
problem
too
|
1 |
.
|
| 2 |
\n
|
|
|
| 3 |
[spoiler]
|
|
|
| 4 |
\n
|
|
|
| 5 |
i can get this to work
|
|
|
| 6 |
\n
|
|
|
| 7 |
[q]{{{
|
|
|
| 8 |
{
|
|
|
| 9 |
spiderscout = {
|
|
|
| 10 |
sightDistance = 1000,
|
|
|
| 11 |
},
|
|
|
| 12 |
}
|
|
|
| 13 |
}}}[/q]
|
|
|
| 14 |
\n
|
|
|
| 15 |
but not this:
|
|
|
| 16 |
\n
|
|
|
| 17 |
[q]{{{
|
|
|
| 18 |
{
|
|
|
| 19 |
spiderscout = {
|
|
|
| 20 |
sightDistance*10,
|
|
|
| 21 |
},
|
|
|
| 22 |
}
|
|
|
| 23 |
}}}[/q]
|
|
|
| 24 |
\n
|
|
|
| 25 |
or More importantly this:
|
|
|
| 26 |
\n
|
|
|
| 27 |
[q]{{{
|
|
|
| 28 |
for name, ud in pairs(UnitDefs) do
|
|
|
| 29 |
if ud.sightDistance then
|
|
|
| 30 |
ud.sightDistance = ud.sightDistance*4
|
|
|
| 31 |
end
|
|
|
| 32 |
}}}[/q]
|
|
|
| 33 |
\n
|
|
|
| 34 |
[/spoiler]
|
|
|
| 35 |
\n
|
|
|
| 36 |
ok spent like 8 hours trying to blindly get the code to work..
|
|
|