Forum

> > CS2D > Scripts > Spawn building....
Forums overviewCS2D overview Scripts overviewLog in to reply

English Spawn building....

2 replies
To the start Previous 1 Next To the start

old Spawn building....

Eternal
User Off Offline

Quote
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??

old Re: Spawn building....

Infinite Rain
Reviewer Off Offline

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