Forum

> > CS2D > Scripts > I need lua to my map
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch I need lua to my map

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt I need lua to my map

BaDgEr
User Off Offline

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

alt Re: I need lua to my map

Kel9290
User Off Offline

Zitieren
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 |=>).
1× editiert, zuletzt 09.12.11 20:00:11
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht