Xs script for marco polo

Can anyone pls tell me xs script/ rms script to implement cheat marco and polo?

I haven’t checked the editor in a while but, what happens if you change one of the visibility player attributes?

Otherwise, maybe use triggers to create an unselectable unit with really big vision range?

creating such an unit works like a 100% map exploration