hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
59 lines (28 loc) • 1.19 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [DefaultPlayerEntity](./server.defaultplayerentity.md) > [(constructor)](./server.defaultplayerentity._constructor_.md)
## DefaultPlayerEntity.(constructor)
Creates a new DefaultPlayerEntity instance.
**Signature:**
```typescript
constructor(options: DefaultPlayerEntityOptions);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
options
</td><td>
[DefaultPlayerEntityOptions](./server.defaultplayerentityoptions.md)
</td><td>
The options for the default player entity.
\*\*Category:\*\* Entities
</td></tr>
</tbody></table>
## Remarks
\*\*Auto-assigned defaults:\*\* A `DefaultPlayerEntityController` is automatically created and assigned. Default idle animations are initialized as looped and playing.
\*\*Cosmetics on spawn:\*\* When spawned, player cosmetics (hair, skin, equipped items) are fetched asynchronously and applied. Child entities are created for hair and equipped cosmetic items.