hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
60 lines (29 loc) • 1.01 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [SimpleEntityController](./server.simpleentitycontroller.md) > [spawn](./server.simpleentitycontroller.spawn.md)
## SimpleEntityController.spawn() method
Override of the `BaseEntityController.spawn` method. Starts the set idle animations (if any) when the entity is spawned.
**Signature:**
```typescript
spawn(entity: Entity): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
entity
</td><td>
[Entity](./server.entity.md)
</td><td>
The entity that was spawned.
\*\*Category:\*\* Controllers
</td></tr>
</tbody></table>
**Returns:**
void
## Remarks
\*\*Auto-starts idle animations:\*\* Calls `_startIdleAnimations()` which stops move/jump animations and starts the configured `idleLoopedAnimations`<!-- -->.