set_bot_attackable - ryzom/ryzomcore GitHub Wiki


title: Set Bot Attackable description: published: true date: 2023-03-16T23:10:09.819Z tags: editor: markdown dateCreated: 2023-03-16T22:27:36.019Z

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** ⚠️