set_bot_attackable - ryzom/ryzomcore GitHub Wiki
title: Set Bot Attackable description: published: true date: 2023-03-12T17:08:36.566Z tags: editor: markdown dateCreated: 2023-03-12T17:08:33.420Z
The setBotAttackable native AI script function sets a group as being attackable or not attackable by bots. 0 means not attackable, 1 means attackable.
()setBotAttackable(attackable: f) // setBotAttackable_f_
- attackable (float): Determines whether the group is attackable by bots.
()setBotAttackable(0); // Make the group not attackable by bots
This example code sets the group as not attackable by bots.