How to send a gameobject to a sepcific position in the 3d environment?

I do have a fps character and if this character touches the cube!! it should spawn in a secific point in the 3d environment!

How to code that? How to get to know a specifiv point in my world?

  function OnTriggerEnter (myTrigger : Collider) {
  if(myTrigger.gameObject.name == "First Person Controller"){
  //here should be the script to spawn the fps controller at a specific point!
   }
  }

Celofa

var prefab : Transform;
var spawn;

function OnTriggerEnter (myTrigger : Collider) 
{
    if(myTrigger.gameObject.name == "First Person Controller")
    {
      Instantiate (prefab, spawn.transform.position, Quaternion.identity);
   }
}

Drag and drop an empty game object where you want the object to spawn in to the var spawn. And the prefab you want spawned in to the prefab section.

THis is a very common question, search before asking, =).

Hope this helps though, and I did it here, didn't test, so it might need tweaked lol.

Itween seems to be a cool library, but i dont need to have the moving process!! I just want the gameobject to be at a other position without any movement animation!!

how to do that?? i hope u understand me!

Celofa

If you simply want to 'teleport' the other object to a new location, try (untested):

function OnTriggerEnter(other : Collider)
{
    if (other.gameObject.name == "First Person Controller") {
        other.transform.position = ...position you want to teleport to goes here...;
    }
}

Where the target position comes from is up to you.