I am working on an RPG, and I want to be able to use a dungeon finder like in WoW or Lotro (this will be an online RPG, an MMORPG i guess), so how do I make a player character instantaneously (sp?) transport to another location? And once inside of the dungeon, I would like to use a dot-hack style system to get through the dungeons (You enter a room, and all of the other doors lock until you defeat the monster(s) in the room.) In the front of main cities, you must use a portal to get to the outside world.
I know this may seem like a lot, but the same principle should apply to the dungeon finder, the dungeon, and the portal.
I am assuming it will use some sort of transform script, and move the object, but I am not a very competent coder... I specialize in ideas and architecture modeling, so if anybody could at least give me a few tips, that would be great.
I know this is a late answer, but here are some tips:
To teleport your character, just make it so that when you do something (eg. Enter a trigger Collider), you set your character's transform position to a empty game object's transform postion, like so:
//this teleports the character to a transform when it enters a trigger UNTESTED
function OnTriggerEnter (collider : Collider){
if(collider.gameObject.tag == "yourCharactersTag"){
collider.transform.position = yourTransform.position;
}
}
To lock doors, just have a script so that when you enter a trigger, rotate all the doors to a closed position (Or just play a close animation), or just make a variable isLocked and when is set to true, make the door not open-able. Then, when you kill all the enemies, open the doors once again. In fact, you can just start off with the doors being locked in the first place.