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
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.
()setCanAggro(CanAggro: f) // setCanAggro_f_
- CanAggro (float): A flag indicating whether bots can aggro (non-zero) or not (0).
()setCanAggro(0);
This example code disables aggro for the current group. Bots in this group will no longer aggro enemies within their aggro range.