Skip to content

set_player_controller

Ryzom Core Wiki edited this page Mar 13, 2023 · 2 revisions

title: Set Player Controller description: published: true date: 2023-03-13T03:44:34.296Z tags: editor: markdown dateCreated: 2023-03-13T03:44:31.206Z

setPlayerController

The setPlayerController native AI script function allows a player to control a specific bot in the NPC group.

Syntax

()setPlayerController(botId: s, playerId: s) // setPlayerController_ss_

Arguments

  • botId (string): The entity ID of the bot that the player will control.
  • playerId (string): The entity ID of the player that will control the bot.

Example

()setPlayerController("(0x0002015bb4:01:88:88)", "(0x0000004880:00:00:00)");

This example code allows the player with entity ID "(0x0000004880:00:00:00)" to control the bot with entity ID "(0x0002015bb4:01:88:88)".

Clone this wiki locally