Forum

> > CS2D > Maps/Editor > Unbreakable Turret
ForenübersichtCS2D-Übersicht Maps/Editor-ÜbersichtEinloggen, um zu antworten

Englisch Unbreakable Turret

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Unbreakable Turret

Jenko63
User Off Offline

Zitieren
Hello i just want to know how to make an unbreakable turret, for example: when the turret gets explodes, he will rebuild itself after 1 sec or something like that

Any help in this?

alt Re: Unbreakable Turret

Cure Pikachu
User Off Offline

Zitieren
You have cs2d lua hook objectdamage, so:
1
2
3
4
5
6
7
addhook("objectdamage","objdmg")
function objdmg(oid)
	local t = object(oid,"type")
	if t == 8 or t == 11 or t == 12 then
		return 1
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Maps/Editor-ÜbersichtCS2D-ÜbersichtForenübersicht