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

setBotAttackable

The setBotAttackable native AI script function sets a group as being attackable or not attackable by bots. 0 means not attackable, 1 means attackable.

Syntax

()setBotAttackable(attackable: f) // setBotAttackable_f_

Arguments

  • attackable (float): Determines whether the group is attackable by bots.

Example

()setBotAttackable(0); // Make the group not attackable by bots 

This example code sets the group as not attackable by bots.

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