Forum

> > CS2D > Scripts > How To Create a Neutral Building
Forums overviewCS2D overview Scripts overviewLog in to reply

English How To Create a Neutral Building

3 replies
To the start Previous 1 Next To the start

old How To Create a Neutral Building

Jhony
User Off Offline

Quote
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
edited 2×, last 09.05.12 09:45:34 pm

old Re: How To Create a Neutral Building

krabob
User Off Offline

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

edit: oh now you decided to post your question..
edited 1×, last 09.05.12 09:57:56 pm

old Re: How To Create a Neutral Building

omg
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview