Forum

> > CS2D > Scripts > Customizable Turrets aren't destroying on endround
Forums overviewCS2D overview Scripts overviewLog in to reply

English Customizable Turrets aren't destroying on endround

1 reply
To the start Previous 1 Next To the start

old Customizable Turrets aren't destroying on endround

Man Of Steel
User Off Offline

Quote
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 >
edited 2×, last 31.12.19 04:55:19 pm

old Re: Customizable Turrets aren't destroying on endround

TrialAndError
User Off Offline

Quote
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
edited 1×, last 31.12.19 06:58:14 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview