-
Notifications
You must be signed in to change notification settings - Fork 94
set_bot_hp_scale_by_alias
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: Set Bot HP Scale by Alias description: published: true date: 2023-03-16T23:10:12.931Z tags: editor: markdown dateCreated: 2023-03-16T22:27:39.564Z
The setBotHPScaleByAlias
function is used to set the HP scale of a specific bot in the current group based on its alias.
()setBotHPScaleByAlias(coef: f, alias: s); // setBotHPScaleByAlias_fs_
- coef (float): The percentage of its max HP that the bot will have.
- alias (string): The alias of the bot.
()setBotHPScaleByAlias(0.5, '(A:1000:10560)');
This code sets the HP scale of the bot with the alias (A:1000:10560)
to 50%.
This function is similar to the setHpScale
function, but it only affects a specific bot within the group based on its alias.
To use this function, the bot must already be spawned in the game.