-
Notifications
You must be signed in to change notification settings - Fork 94
follow_player
Ryzom Core Wiki edited this page Jul 8, 2024
·
4 revisions
title: Follow Player description: published: true date: 2023-03-16T23:06:47.154Z tags: editor: markdown dateCreated: 2023-03-16T22:23:16.255Z
The followPlayer native AI script function sets the activity of an NPC group to follow a specified player.
()followPlayer(PlayerEid: s, Radius: f) // followPlayer_sf_
- PlayerEid (string): The ID of the player to follow.
- Radius (float): The dispersion radius of the wander activity.
()followPlayer("(0x0002015bb4:01:88:88)", 10);
This example code sets the activity of the NPC group to follow the player with an ID of "(0x0002015bb4:01:88:88)" with a dispersion radius of 10.