Action when player is facing and in range of object

This is standard RPG stuff here. When the player is close to an object and is facing said object how do I trigger a call back(In my case to show the gui) when they press a keystroke? I can make my GUI appear when the user presses a key but that is pretty useless if it’s not attached to something. I also need to get access to that objects variables so would the call back/trigger be on the object that I am interacting with?

A dialogue system doesn’t work well if you can’t talk to objects or open chests :slight_smile:

Also,check this out : http://www.youtube.com/watch?v=fxSM_INrmF8&feature=channel_video_title

That was what I was looking for. Sorry it’s been a long week at work and I wasted a lot of time last night looking at alternatives for unity and got a little discouraged about having some trouble integrating my DialogueEngine with unity. Unity is also having some issues with my Visual Studio 2010 Pro version. I can’t synchronize my projects, but that the is a problem for another thread :slight_smile: