By using common sense. I don't think this reply will be sufficient enough though.. therefore..
You're asking for nothing more than a simple object interaction. A click on an object - which moves the player to wherever you need. Locate the class that handles such actions and implement your object there.
It's impossible to assist on a help thread such as this without spoonfeeding, which I refuse to do.
Specify your help threads a little further in the future if you wish to actually receive assistance and not get shit on, ask how to write a specific part of code, not how to do the whole thing.






