-
Notifications
You must be signed in to change notification settings - Fork 94
set_can_aggro
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: Set Can Aggro description: published: true date: 2023-03-16T23:10:16.371Z tags: editor: markdown dateCreated: 2023-03-16T22:27:43.240Z
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.