# Noob question about referencing objects

**URL:** <https://forum.kirupa.com/t/noob-question-about-referencing-objects/138113>\
**Category:** Uncategorized\
**Created:** [February 20, 2005, 1:37am UTC](https://forum.kirupa.com/t/noob-question-about-referencing-objects/138113 "2005-02-20T01:37:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nih](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@nih](https://forum.kirupa.com/u/nih)\
**Post date:** [February 20, 2005, 1:37am UTC](https://forum.kirupa.com/t/noob-question-about-referencing-objects/138113/1 "2005-02-20T01:37:10Z")

</div>

Hey!

Righto, hopefully the last shreds of my noobism will be discarded with the answering of this question.

I have the following object:

\_root.World.Ground.Ground\_Rotation.Ground\_Position.treespawner

It’s a placed object that upon first-run creates a tree:

\_root.Pawns.tree234234

Because there are a lot of trees, that number at the end is random.

My spawner object needs to continue to interact with that particular tree. How do I do this? What is the exact syntax I’d use to let the contents of a variable indicate the path to the object I want to alter? Or is there another way to reference it?
