Skip to content
Ryzom Core Wiki edited this page Jul 8, 2024 · 4 revisions

title: Max description: published: true date: 2023-03-16T23:08:35.943Z tags: editor: markdown dateCreated: 2023-03-16T22:25:38.791Z

max

The max native AI script function returns the highest of two values.

Syntax

(max_value: f)max(value1: f, value2: f) // max_ff_f

Arguments

  • value1 (float): A value to compare.
  • value2 (float): A value to compare.

Return value

  • max_value (float): The maximum value.

Example

(longest)max(left, right)

This example code returns the longest of two values, left and right.

Clone this wiki locally