clear_player_controller - ryzom/ryzomcore GitHub Wiki


title: Clear Player Controller description: published: true date: 2023-03-13T03:53:35.795Z tags: editor: markdown dateCreated: 2023-03-13T03:53:32.815Z

clearPlayerController

The clearPlayerController native AI script function is used to stop the control of an NPC by a player.

Syntax

()clearPlayerController(botId: s) // clearPlayerController_s_

Arguments

  • botId (string): The entity id of the bot to stop controlling.

Example

()clearPlayerController("(0x0002015bb4:01:88:88)");

This example code stops the control of the bot with the entity id "(0x0002015bb4:01:88:88)" by the player.

⚠️ **GitHub.com Fallback** ⚠️