| 1 |
I
also
recently
to
get
names
after
widget:GameStart(
)
instead
of
widget:Initialize(
)
.
That
might
even
fix
you're
problem,
but
if
you
do
that
it
helps
to
do
something
like
|
1 |
I
also
recently
learned
to
get
names
after
widget:GameStart(
)
instead
of
widget:Initialize(
)
.
That
might
even
fix
you're
problem,
but
if
you
do
that
it
helps
to
do
something
like
|
| 2 |
[quote]
|
2 |
[quote]
|
| 3 |
function widget:Initialize()
|
3 |
function widget:Initialize()
|
| 4 |
Chili = WG.Chili
|
4 |
Chili = WG.Chili
|
| 5 |
\n
|
5 |
\n
|
| 6 |
if Spring.GetGameFrame() < 30 then
|
6 |
if Spring.GetGameFrame() < 30 then
|
| 7 |
return -- not started, wait for callin
|
7 |
return -- not started, wait for callin
|
| 8 |
end
|
8 |
end
|
| 9 |
\n
|
9 |
\n
|
| 10 |
getTeamInfo()
|
10 |
getTeamInfo()
|
| 11 |
end
|
11 |
end
|
| 12 |
\n
|
12 |
\n
|
| 13 |
function widget:GameStart()
|
13 |
function widget:GameStart()
|
| 14 |
getTeamInfo()
|
14 |
getTeamInfo()
|
| 15 |
end
|
15 |
end
|
| 16 |
[/quote]
|
16 |
[/quote]
|
| 17 |
then it won't get names until after the game starts (otherwise I think it fails) but will also get them on /luaui reload
|
17 |
then it won't get names until after the game starts (otherwise I think it fails) but will also get them on /luaui reload
|