get_mid_pos - ryzom/ryzomcore GitHub Wiki


title: Get Mid Pos description: published: true date: 2023-03-12T23:59:42.017Z tags: editor: markdown dateCreated: 2023-03-12T23:59:39.163Z

getMidPos

The getMidPos native AI script function returns the position (x, y) of the current group.

Syntax

(x: f, y: f)getMidPos() // getMidPos__ff

Return value

  • x (float): The x position of the group.
  • y (float): The y position of the group.

Example

(x, y)getMidPos();

This example code returns the current position (x, y) of the group.

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