set_player_attackable - ryzom/ryzomcore GitHub Wiki


title: Set Player Attackable description: published: true date: 2023-03-12T16:57:43.137Z tags: editor: markdown dateCreated: 2023-03-12T16:57:40.100Z

setPlayerAttackable

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.

Syntax

()setPlayerAttackable(Attackable: f) // setPlayerAttackable_f_

Arguments

  • Attackable (float): Specifies whether the group is attackable or not. A value of 0 means not attackable, while a value of 1 means attackable.

Example

()setPlayerAttackable(1); // Make the group attackable by players 

This example code sets the group as being attackable by players.

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