set_hp_level - ryzom/ryzomcore GitHub Wiki


title: Set HP Level description: published: true date: 2023-03-14T14:48:47.363Z tags: editor: markdown dateCreated: 2023-03-13T01:25:31.911Z

setHPLevel

The setHPLevel native AI script function adds a factor of the max HP to the current HP level of each bot of the group.

Syntax

()setHPLevel(Coef: f)

Arguments

  • Coef (float): The percentage of its max HP each creature will have added to its current HP.

Example

()setHPLevel(0.8);

This example code adds 80% of its max HP to the current HP level of each bot of the group.

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