-
Notifications
You must be signed in to change notification settings - Fork 90
set_player_controller
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: Set Player Controller description: published: true date: 2023-03-16T23:11:19.813Z tags: editor: markdown dateCreated: 2023-03-16T22:29:05.808Z
The setPlayerController native AI script function allows a player to control a specific bot in the NPC group.
()setPlayerController(botId: s, playerId: s) // setPlayerController_ss_
- 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.
()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)".