First you must to enable models for detect collisions
now you will have access to collision properties
if you want detect if the player is in front of someting you must create a transparent object that defines an area around the door.
in this way, whenever model[x] (your player) collide with any other object with collision enabled myfunction will run
I hope you have understood, my english is very bad.