-
Notifications
You must be signed in to change notification settings - Fork 1
Enable AI
Mike-MF edited this page Jun 1, 2024
·
4 revisions
This page will explain the usage of the Disable AI function.
/*
* Author: Mike
* Faster method of using enableAI command.
*
* Features are on the wiki https://community.bistudio.com/wiki/disableAI
*
* Call from init.sqf
*
* Arguments:
* 0: Groups or Units <ARRAY>
* 1: Feature <STRING>
*
* Return Value:
* None
*
* Example:
* [[My_Group_One, My_Group_Two], "PATH"] call MFUNC(enableAI)
* [[My_Group_One, My_Unit_One], "AUTOCOMBAT"] call MFUNC(enableAI)
*/
The disable AI function allows you to easily enable certain types of group AI behaviour via the function instead of using the forEach loops. It can take an array of units and groups.
Example:
[[My_Group_One, My_Group_Two], "PATH"] call TAC_Mission_fnc_enableAI;
This should be called globally from trigger or via init.sqf
Pages
- Home
- Your First Mission
- Creating A Mission
- Contract Missions
- Difficulty Guidelines
-
Functions Library
- Base Spectator
- Bomber
- Car Alarm
- Chemical Detector
- Collect Intel
- Connect Battery To Defusable
- Contamination Gas
- Count Alive
- Dialogue
- Disable AI
- Download Intel
- Earthquake
- Enable AI
- Force Shooting
- Ground Fog
- Hunt
- Lock Doors
- Mark Buildings
- Monitor Units
- Mortar Strike
- Ping
- Players
- Reaction
- Reinforcements
- Reinforcement Waves
- Respirator Effects
- Set Sleeping
- Sound Source
- Surrender
- Switch Action
- Teleport
- Toggle Lights
- Trigger Area
- Helicopters
- Resources
- Quality Checklist
- Useful Commands
- ArmaQDL