# Character System

The character system is a way to easily manage entities in your game and attach them to Players. The bare bones system allows you to spawn characters on server and clients and connect to state events. It can also be used alongside other systems such as the [Movement System](/characters/character-movement-system.md), the Inventory System, and the Damage System.

Use the system in TS with `Airship.Characters`

```typescript
//Set the default prefab to use when spawning a character
Airship.Characters.SetDefaultCharacterPrefab(myCharacter);

//Listen to every new character spawn
Airship.Characters.ObserveCharacters((newCharacter) => {
    //Let the server and client sync
    newCharacter.WaitForInit();
    //Print their display name to the console
    print("Character Spawned: " + newCharacter.GetDisplayName());
})
```


---

# 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.airship.gg/characters/character-system.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.
