sm.character.createCharacter
Creates a new character in a world.
Kind: Function
Environments: Game
Game
sm.character.createCharacter( player, world, position, yaw, pitch, visible )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
player |
Player | The player controlling the character. |
world |
World | The world the character is created in. |
position |
Vec3 | The world position of the character. |
yaw (optional) |
number | The initial yaw of the character (Optional). |
pitch (optional) |
number | The initial pitch of the character (Optional). |
visible (optional) |
boolean | Whether the character is visible on spawn. Defaults to true. (Optional) |
Returns:
| Type | Description |
|---|---|
| Character | The created character. |