Skip to content

set_attackable

Ryzom Core Wiki edited this page Jul 8, 2024 · 3 revisions

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

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.

Clone this wiki locally