set_bot_hp_scale_by_alias - ryzom/ryzomcore GitHub Wiki
title: Set Bot HP Scale by Alias description: published: true date: 2023-03-14T14:50:52.970Z tags: editor: markdown dateCreated: 2023-03-14T03:34:09.707Z
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.