Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ClientScene.RemovePlayer

Switch to Manual
public static function RemovePlayer(playerControllerId: short): bool;

Parameters

id The local player ID number .

Returns

bool Returns true if the player was successfully destoyed and removed.

Description

Remove the specified player ID from the game.

Both the client and the server will destroy the player object and remove him from the player list.