set_attackable - ryzom/ryzomcore GitHub Wiki


title: Set Attackable description: published: true date: 2023-03-12T16:34:49.088Z tags: editor: markdown dateCreated: 2023-03-12T16:34:45.733Z

setAttackable

The setAttackable native AI script function sets the attackable property of a group, which determines whether the group can be attacked by bots and players.

Syntax

()setAttackable(Attackable: f)

Arguments

  • Attackable (float): A value of 0 indicates that the group is not attackable, while a value of 1 indicates that the group is attackable.

Example

()setAttackable(1);

This example code sets the group as attackable by bots and players.

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