i have tried but none worked.
Forum
CS2D Scripts An action while players have same positions.An action while players have same positions.
8 replies 1
i have tried but none worked.
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("movetile","hue") function hue(id,x,y) 	for k,v in pairs (player(0,"tableliving")) do 		if v ~= id and player(v,"tilex") == x and player(v,"tiley") == y then 			msg"Two Ppl on same tile" 		end 	end end
Note: changes may apply if you use different hooks
It caused the error maybe?
Rainoth has written
so it would work if you checked if both people were standing on same pixel or it would require a bit of maths to work.
Because you wanted to write more.
1