1 |
Priming
nukes
before
launch
is
a
significant
advantage.
|
1 |
Priming
nukes
before
launch
is
a
significant
advantage
and
to
widget
it
is
pretty
simple.
|
|
|
2 |
\n
|
|
|
3 |
\n
|
|
|
4 |
function widget:GameFrame(f)
|
|
|
5 |
for id,data in pairs(launcherstoprime) do
|
|
|
6 |
if data == 0 then
|
|
|
7 |
Spring.GiveOrderToUnit(id,CMD.ATTACK,attackhere,0)
|
|
|
8 |
launcherstoprime[id] = f + 10
|
|
|
9 |
Spring.Echo("Primed " .. id)
|
|
|
10 |
elseif data == f then
|
|
|
11 |
Spring.GiveOrderToUnit(id,CMD.STOP,empty,0)
|
|
|
12 |
Spring.Echo("Stopping " .. id)
|
|
|
13 |
launcherstoprime[id] = nil
|
|
|
14 |
end
|
|
|
15 |
end
|
|
|
16 |
end
|