Forum

> > CS2D > Scripts > Spawn building....
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Spawn building....

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Spawn building....

Eternal
User Off Offline

Zitieren
Hello everyone on us

I want a code and that code is "Spawn building every minute in assign X Y Position"

that building is supply whenever that supply was destroyed by someone and the supply still spawn every minute in assign X Y position.

My assign position is : 44|40

Can someone give me that code??

alt Re: Spawn building....

Infinite Rain
Reviewer Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
supplyx = 44
supplyy = 40

addhook('minute', 'mm')
function mm()
	if tile(supplyx, supplyy, "walkable") then
		parse('spawnbuilding 9 '.. supplyx ..' '.. supplyy ..' 0 0 0 0')
	end
end

Hope it will work
X|Y is a supplyx|supplyy variables

Enjoy
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht