Skip to content

clear_aggro_list

Jan Boon edited this page Mar 13, 2023 · 1 revision

title: Clear Aggro List description: published: true date: 2023-03-13T12:51:30.579Z tags: editor: markdown dateCreated: 2023-03-13T12:51:30.579Z

clearAggroList

The clearAggroList native AI script function is used to reset the aggro list of a bot.

Syntax

()clearAggroList() // clearAggroList__
()clearAggroList(dontSendLostAggro: f) // clearAggroList_f_

Arguments

  • dontSendLostAggro (float, optional): A boolean value indicating whether to send a lost aggro message to EGS (0) or not (1). The default value is 0.

Examples

()clearAggroList(); // Equivalent to ()clearAggroList(0);

This example code resets the aggro list of a bot.

()clearAggroList(1.0f);

This example code resets the aggro list of a bot without sending a lost aggro message to EGS.

Clone this wiki locally