Hi guys, I have the following script which will spawn an object at the position of the object that this is placed on, but I’d like it to spawn at the location of a different object
Like in the following script I need to swap out
var TargetObject : GameObject
OnTriggerenter ()
{
//get the script for the position of anouther object
var instance : GameObject = Instantiate(thePrefab, transform.position// right here I need the pos of a different object which will ultimately be a var , transform.rotation);
}