-
Notifications
You must be signed in to change notification settings - Fork 94
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
The clearPlayerController native AI script function is used to stop the control of an NPC by a player.
()clearPlayerController(botId: s) // clearPlayerController_s_
- botId (string): The entity id of the bot to stop controlling.
()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.