Use a 2-position 5-way detent valve to supply the air to the paint gun from port 4. Use the foot valve (plumbed from the 2 port of the above mention valve) to pilot the 2 pos. detent to enable the gun. Use a pneumatic timer (from any of the major manufacturers of pneumatic logic valves i.e...