How to go about replicating masks in the master material outpost23 by epic

I can’t see what’s inside those functions at the mo, but try hooking up a single channel from that AO texture, instead of the entire RGB.