Skip to content

max_hit_range

Ryzom Core Wiki edited this page Mar 13, 2023 · 2 revisions

title: Max Hit Range description: published: true date: 2023-03-13T01:57:19.644Z tags: editor: markdown dateCreated: 2023-03-13T01:57:15.673Z

maxHitRange

The maxHitRange native AI script function sets the maximum hit range for the player, in meters.

Syntax

()maxHitRange(MaxHitRange: f) 

Arguments

  • MaxHitRange (float): A floating-point number that sets the maximum hit range for the player in meters.

Example

()maxHitRange(50); // Set the max hit range to 50 meters for all NPCs in the group.

This example code sets the maximum hit range to 50 meters for all NPCs in the group.

Clone this wiki locally