CS2D
Scripts x=x works? x=x works?
2 replies addhook("movetile","hook_movetile")
function hook_movetile(id,x,y)
current = {x=x,y=y}
end
ehh will this work? Lee Moderator Offline
It's syntactically correct, but every time a (any) player moves, the global variable current is overwritten with the new table. Essentially, the information in current is the most recent movement made by any player, but without tracking that player. If it tracks the id, then its a porous (incorrect) re-implementation of player(id, "tilex"), but without the id, the information is meaningless. yes i know, i just wanted to know that = {x=x,y=y} would work, thx