Forum

> > CS2D > Scripts > players are moving in the direction of scrolling t
Forums overviewCS2D overview Scripts overviewLog in to reply

English players are moving in the direction of scrolling t

10 replies
To the start Previous 1 Next To the start

old players are moving in the direction of scrolling t

stalker russs
User Off Offline

Quote
I need a script that the players moved in the direction of scrolling of the tiles, as if on an escalator (as it was on the server dreamdaggera) . in scripts I know is very bad but I really want to understand how it can be done(sorry for bad English)

old Re: players are moving in the direction of scrolling t

Rainoth
Moderator Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
addhook("ms100","elevator")
function elevator()
	for _,id in pairs (player(0,"tableliving")) do
		local x = player(id,"tilex")
		local y = player(id,"tiley")
		local YOUR_TILE = 33
		if tile(x,y,"frame") == YOUR_TILE then
			parse("setpos "..id.." "..player(id,"x").." "..player(id,"y")+1)
		end
	end
end

Now when a person stands on tile 33, he will move down.
edited 1×, last 06.07.15 07:38:57 pm

old Re: players are moving in the direction of scrolling t

stalker russs
User Off Offline

Quote
I'm not good in scripting. but I had put this value on the tile room 130. I did it, but it didn't work
I don't know a foreign language and are not able to formulate the problem correctly. players must move in the direction scrolling WA tile , but they don't move
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview