Skip to content

clear_player_controller

Ryzom Core Wiki edited this page Jul 8, 2024 · 3 revisions

title: Clear Player Controller description: published: true date: 2023-03-16T23:05:31.280Z tags: editor: markdown dateCreated: 2023-03-16T22:21:38.836Z

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.

Clone this wiki locally