Forum

> > CS2D > Scripts > How To Create a Neutral Building
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How To Create a Neutral Building

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt How To Create a Neutral Building

Jhony
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
addhook("build","att")
function att(id,type,x,y)
		if type == 8 then --Turret
			if player(id,"money")>=5000 then
				parse("spawnobject 8 "..x.." "..y.." "..player(id,"rot").." 0 0 "..id)
end
return 1
end
end

No Have Error in Console
But no Spawn a Neutral Turret
2× editiert, zuletzt 09.05.12 21:45:34

alt Re: How To Create a Neutral Building

krabob
User Off Offline

Zitieren
Is this a question or are you trying to show people how to do it?

edit: oh now you decided to post your question..
1× editiert, zuletzt 09.05.12 21:57:56

alt Re: How To Create a Neutral Building

omg
User Off Offline

Zitieren
dunno if anyone will actually read this now, but...

this will give a neutral turret that belongs to u (it shoots every1 except u; it will claim spoils for u; it will be destroyed if u switch teams/leave if u have kill buildings on):
code >


this will create a completely neutral turret that shoots everything (including u); it will not claim spoils for u; it will not be removed should u switch teams/leave:
code >


also: LMAO u checked for 5k but u forgot to deduct 5k
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht