Originally Posted By: Kartoffel
Originally Posted By: tolu619

Code:
on_e = door_function();



That's a function call...

You have to assign it linke this:
on_e = door_function;


My bad. I knew that. I'll go correct my original post.