hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
56 lines (27 loc) • 825 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [EntityManager](./server.entitymanager.md) > [getEntitiesByTag](./server.entitymanager.getentitiesbytag.md)
## EntityManager.getEntitiesByTag() method
Gets all spawned entities in the world with a specific tag.
**Signature:**
```typescript
getEntitiesByTag(tag: string): Entity[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
tag
</td><td>
string
</td><td>
The tag to get the entities for.
</td></tr>
</tbody></table>
**Returns:**
[Entity](./server.entity.md)<!-- -->\[\]
All spawned entities in the world with the provided tag.