SpawnCharacterOptions
What spawnCharacter takes.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
facing? |
number |
undefined |
Radians about y the character faces, over its saved facing: the scene’s <CharacterSpawn>’s where left out. |
position? |
Vector3 |
undefined |
Where the character spawns, over its saved place. Left out, a point placed for the player’s team, over the saved place unless characters() sets restorePlace; else the saved place the player’s save keeps for savedAs, or the player’s seat’s spawn point placed for no team. |
props? |
CharacterSpawnProps |
undefined |
Props laid over the scene’s <CharacterSpawn>’s, such as another model, other abilities or other health: a knight, a mage or a rogue from one scene. Each plugin’s onCharacterSpawn reads them, and where they name a look, every page draws the character in it. |
restore? |
boolean |
true |
Whether the player’s record for savedAs restores onto the character: false starts it fresh, as a roguelike’s new run does. |
savedAs? |
string |
"main" |
The name the player’s save keeps this character as: one per character a player switches between. |