Hey guys, I’m trying to instantiate one object to the position of another but with an offset.
I’ve fudged around a bit;
if ( Input.GetMouseButtonDown (0) && lastHitObj )
{
if ( lastHitObj.tag == "placementPlane_Open" )
{
if ( structureIndex == 0 )
{
Instantiate ( allStructures[structureIndex], lastHitObj.structurePOS, Quaternion.identity );
structurePOS = Vector3 ( transform.position.x + .5, transform.position.y + .5, transform.position.z );
}
of course this is giving me errors
I’ve done a search and previous questions answers must not be in javascript because they cough out errors.