start_moving - ryzom/ryzomcore GitHub Wiki


title: Start Moving description: published: true date: 2023-03-12T17:25:59.551Z tags: editor: markdown dateCreated: 2023-03-12T17:25:56.470Z

startMoving

The startMoving native AI script function sets an activity to move a group to a specific location.

Syntax

()startMoving(x: f, y: f, radius: f) // startMoving_fff_

Arguments

  • x (float): The X-coordinate of the target location.
  • y (float): The Y-coordinate of the target location.
  • radius (float): The radius of the wander activity.

Example

()startMoving(100,-100,10); // Moves the group to (100,-100) with a radius of 10

This example code sets an activity for the group to move to the location (100,-100) with a radius of 10.

⚠️ **GitHub.com Fallback** ⚠️