Forum

> > CS2D > Scripts > Customizable Turrets aren't destroying on endround
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Customizable Turrets aren't destroying on endround

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Customizable Turrets aren't destroying on endround

Man Of Steel
User Off Offline

Zitieren
Hello guys,

i was looking for a turret script and i found *Customizable Turrets 1.01* script which is very useful and i really liked it

Script is working fine but it has a bug that when a player build a turret in a round, it doesn't destroy in the end of round while the projectiles keep throw on enemies of the builder where it was built in previous round but image of custom turret remove!

Kindly i request someone to please fix it
I need it for my server

Here is the script. I hope someone will fix it

*Customizable Turrets 1.01* Script >
2× editiert, zuletzt 31.12.19 16:55:19

alt Re: Customizable Turrets aren't destroying on endround

TrialAndError
User Off Offline

Zitieren
I can see a DestroyTurret function. Try calling that on round end

1
2
3
4
5
6
addhook("endround", "mm1.onEndround")
function mm1.onEndround()
  for i = 1, #mm1.turrets do -- Could use pairs, depending on how the data is stored
    mm1.DestroyTurret(mm1.turrets[i])
  end
end
1× editiert, zuletzt 31.12.19 18:58:14
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht