Hi ravenvince2
It's not too hard, and your on the right track with your script. Just a few changes. Remember to use "etimer" not "timer" as it works better with entities when running multiple scripts.
First setup your door and remote switch as normal. Then for your light make sure it's dynamic (red light of course) and attach this to its Main script.
:state=0:lightoff,etimerstart,state=1
:state=1,plrdistwithin=200,plrusingaction=1:state=3
:state=1,etimergreater=500:lighton,etimerstart,state=2
:state=2,etimergreater=500:lightoff,etimerstart,state=1
:state=3:lighton,lightred=0,lightgreen=255=lightblue=0
Note the "etimergreater" (500=half sec. change to your needs)
Also "plrdistwithin=200(two segments,change to your need).Place the light and switch close to door. Tested & works.
best