addBotPlayer
addBotPlayer(
authority,addBotPlayerOptions):PlayerEntity|null
Fills a seat with a bot player: a player entity with the role
Role.Bot and no page, made with every plugin’s onPlayerJoin and
onPlayerReady at once, so the characters plugin gives it a
character and a scoreboard or a team balance counts it. A room system
drives it through writeInput; a tick no system wrote its input for
reads at rest. It holds no save. kick removes it, and the room’s
close runs its leave with every player’s. Answers the player entity,
or null where a join hook threw in a deployed room, which logs it and
leaves nothing of it; a development world throws it. As Unreal’s bots,
which a game mode spawns with an AIController and a PlayerState.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
Authority |
addBotPlayerOptions |
AddBotPlayerOptions |
Returns
Section titled “Returns”PlayerEntity | null