Skip to content

set_player_attackable

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

title: Set Player Attackable description: published: true date: 2023-03-16T23:11:16.749Z tags: editor: markdown dateCreated: 2023-03-16T22:29:01.728Z

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.

Clone this wiki locally