# 8. Connected Entities

### In This Scene...

This scene demonstrates usage of connected entities.

This scene shares the moving entities that were in a few previous scenes but also has added functionality.

Right-clicking on a non-local entity causes the local entity to start moving towards it while also displaying an arrow pointed at the target. When the entity reaches this target it will parent itself under it as a child, setting the target as its connected entity.

From this point onward, until the entity disconnects by moving or otherwise, the entity will be smaller and parented to this target. When the target moves the local entity will move with it as one.

### ![](/files/PpVKa3YGseCjeYsgBZUo)

This type of connection can also cause issues. For example if the client controlling the parent entity disconnects, destroying its entity, any client whose entity was a child of that destroyed entity will have his entity destroyed as well.

{% hint style="info" %}
To learn more about connected entities see [Connected Entities](/0.7.4/connected-entities/overview.md).
{% endhint %}

### Build and Try

You can build this Scene via the Build Settings. Run the local Replication Server through the *Window -> Coherence -> Settings* window and see how it works. You can try running multiple clients rather than just two and see replicating for each.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.coherence.io/0.7.4/tutorial-project/network-playground/8.-connected-entities.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
