set_can_aggro - ryzom/ryzomcore GitHub Wiki


title: Set Can Aggro description: published: true date: 2023-03-12T15:15:25.579Z tags: editor: markdown dateCreated: 2023-03-12T15:15:22.079Z

setCanAggro

The setCanAggro native AI script function allows you to enable or disable bot aggro for the current group. Bots are able to aggro enemies within their aggro range.

Syntax

()setCanAggro(CanAggro: f) // setCanAggro_f_

Arguments

  • CanAggro (float): A flag indicating whether bots can aggro (non-zero) or not (0).

Example

    ()setCanAggro(0);

This example code disables aggro for the current group. Bots in this group will no longer aggro enemies within their aggro range.

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