# Waypoint Touching Prims

Automatic bot is often need to touch something in-world: a prim or attachment. (Attachments are also prims indeed. We separate in-world prims and attachments for easier reading).

## Touching in-world prims

In-world prims can be touched by using their UUID:

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/d879ccb4-8481-4d10-8e8e-87c3601594aa/Waypoints-touch-prim.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=f7dca9329e6886521d8c8994f476db3e280674df61b90430545544b6dc4b2d3b&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =400x270")

* Simple prims require UUID only.
* Complex prims (like elevator buttons) may need more touch details: face U and V. To get these details (face, U and V), use our [LSL helper script](/doc/bddde3be-2b9e-461f-84c4-151d39ef2192).

## Touching bot attachments and HUDs

Touching attachments and HUDs is a bit different because these object change their UUID on every bot login.

Thus, you should use the object name to make a touch:

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/c75d500d-b695-4861-a24d-1e3bb0b6ad4d/Waypoints-touch-attachment.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=4ac08fa23ac27af7d5ac47f897aa3982c6f67760cd354ab13612f0f087076e34&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =400x198")

If your HUD has multiple buttons, determine the link number. Use Firestorm or a similar viewer, edit object and get the link number:

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/b1eca285-a964-4921-9870-a278923b327a/Get_object_linknum.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=27f7ad7ad4d3025004fc2267d9d32ca21235d7e1dc0026e9a34de9d2c9b319e2&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =294x264")

* The link number of the root prim is always "1".
* Single-prim objects are also have link number = 1

## IMPORTANT: Data availability

Please note that bot loads all nearby prims within 10-20 seconds after startup. Thus, bot may need more time to issue this command.