-
Notifications
You must be signed in to change notification settings - Fork 94
set_max_hp
Ryzom Core Wiki edited this page Jul 8, 2024
·
2 revisions
title: Set Max HP description: published: true date: 2023-03-16T23:11:02.079Z tags: editor: markdown dateCreated: 2023-03-16T22:28:42.211Z
The setMaxHP native AI script function is used to set the maximum HP level of each bot in the current group.
()setMaxHP(MaxHP: f, SetFull: f)
- MaxHP (float): The new maximum HP for each bot.
- SetFull (float): If not 0, sets the HP to the new maximum.
()setMaxHP(50000, 1);
This example code sets the maximum HP of each bot in the group to 50000 and sets their current HP to the new maximum.
If a bot is not spawned, its maximum HP is not affected by this function.