Forum

> > CS2D > Scripts > I need lua to my map
Forums overviewCS2D overview Scripts overviewLog in to reply

English I need lua to my map

1 reply
To the start Previous 1 Next To the start

old I need lua to my map

BaDgEr
User Off Offline

Quote
I need lua. If one tile is scrolling (speed 1) then player is move with it (something like escalators). Can someone make it for me?

old Re: I need lua to my map

Kel9290
User Off Offline

Quote
More info? Direction of scroll?
1
2
3
4
5
6
7
8
9
10
frame = 3 -- frame of your scrolling tile

addhook("ms100","_ms")
function _ms()
	for id=1,32 do
		if tile(player(id,"x"),player(id,"y"),"frame") == frame then
			parse("setpos "..id.." "..player(id,"x")+1.." "..player(id,"y"))
		end
	end
end
This scrolls all people on tile (which frame is 3) (change in first string) to x+1 (to right |=>).
edited 1×, last 09.12.11 08:00:11 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview