Hi i have a problem with my script : can some1 help me ? Thanks.
var target; Transform;
function Update () {
}
function OnTriggerEnter(col)
{
Collider;
if(col.gameObject.tag == “teleport”) {
this.transform.position = target.position;
}
}
Hi i have a problem with my script : can some1 help me ? Thanks.
var target; Transform;
function Update () {
}
function OnTriggerEnter(col)
{
Collider;
if(col.gameObject.tag == “teleport”) {
this.transform.position = target.position;
}
}
function OnTriggerEnter(col)
{
Collider;
should be
function OnTriggerEnter(col : Collider)
{
Thank you for your speed answer and now it’s working ^^