<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [EntityManager](./server.entitymanager.md) &gt; [getEntitiesByTagSubstring](./server.entitymanager.getentitiesbytagsubstring.md)

## EntityManager.getEntitiesByTagSubstring() method

Gets all spawned entities in the world with a tag that includes a specific substring.

**Signature:**

```typescript
getEntitiesByTagSubstring(tagSubstring: string): Entity[];
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

tagSubstring


</td><td>

string


</td><td>

The tag substring to get the entities for.


</td></tr>
</tbody></table>
**Returns:**

[Entity](./server.entity.md)<!-- -->\[\]

All spawned entities in the world with a tag that includes the provided substring.

