set_player_attackable - ryzom/ryzomcore GitHub Wiki
title: Set Player Attackable description: published: true date: 2023-03-16T23:11:16.749Z tags: editor: markdown dateCreated: 2023-03-16T22:29:01.728Z
The setPlayerAttackable native AI script function sets a group as being attackable or not by players. A value of 0 means not attackable, while a value of 1 means attackable.
()setPlayerAttackable(Attackable: f) // setPlayerAttackable_f_
- Attackable (float): Specifies whether the group is attackable or not. A value of 0 means not attackable, while a value of 1 means attackable.
()setPlayerAttackable(1); // Make the group attackable by players
This example code sets the group as being attackable by players.