i want the item to be be spawned at the location of a empty game object i have the variables all ready made if u need the whole script comment and ill post it
function Update ()
{
if (drop)
{
Instantiate (clone);
Instantiate (clone1);
drop = false;
Destroy (pick);
}
}
// Create an empty object in scene
// Attach this script to any object in scene
// See: emptyObject.transform.position, emptyObject.transform.rotation
// Location and rotation are params 2 & 3 of Instantiate()
var emptyObject : Transform; // Drag empty object here
var drop = false;
var clone : Transform; // Drag your clone obj here
function Start() {
drop = true;
}
function Update ()
{
if (drop)
{
Instantiate (clone, emptyObject.transform.position, emptyObject.transform.rotation);
drop = false;
}
}