Skip to content

Enable AI

Mike-MF edited this page May 5, 2023 · 4 revisions

This page will explain the usage of the Disable AI function.


/*
 * Author: Mike
 * Faster method of using enableAI command with groups.
 *
 * Types are on the wiki https://community.bistudio.com/wiki/disableAI
 *
 * Call from init.sqf
 *
 * Arguments:
 * 0: Groups <ARRAY>
 * 1: Type <STRING>
 *
 * Return Value:
 * None
 *
 * Example:
 * [[My_Group_One, My_Group_Two], "PATH"] call MFUNC(enableAI)
 * [[My_Group_One, My_Group_Two], "AUTOCOMBAT"] call MFUNC(enableAI)
 */

Usage

The disable AI function allows you to easily enable certain parts of group AI behaviour via the function instead of using the forEach loops.

Example:

[[My_Group_One, My_Group_Two], "PATH"] call TAC_Mission_fnc_enabbleAI;

This should be called globally from trigger or via init.sqf

Clone this wiki locally