disableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "ArmA3" to "{{arma3}}")
m (Text replacement - " " to " ")
Line 73: Line 73:


This command has also a bug: after mission save or load the effect will be no longer active and you must set it again. It's also good way to detect number of saves and loads (loads can be recognized using [[time]] command).
This command has also a bug: after mission save or load the effect will be no longer active and you must set it again. It's also good way to detect number of saves and loads (loads can be recognized using [[time]] command).




Line 84: Line 83:
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>





Revision as of 21:58, 31 January 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
unitName: Object - AI unit
section: String
Return Value:
Return value needed

Examples

Example 1:
_soldier1 disableAI "AUTOTARGET";

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Posted on 26.9.2013
Katulobotomia
After substantial testing in Arma 3 1.01, the AI sections are as follows:
  • MOVE: disabling this will stop units from turning and moving. Units will still change stance and fire at the enemy if the enemy happens to walk right in front of the barrel. Unit will watch enemies that are in their line of sight, but won't turn their bodies to face the enemy, only their head. Works for grouped units as well. Good for staging units and holding them completely still. Movement can't be controlled by a script either, you have to re-enable movement for that. Unit will still be able to aim within his cone of fire.
  • AUTOTARGET: Essentially makes single units without a group, "deaf". The unit still goes prone and combat ready if he hears gunfire. They won't turn around when gunfire comes from the behind, but if an enemy walks in front they will target the enemy and fire as normal. WON'T WORK FOR GROUPED UNITS WITH A LEADER, the leader will assign targets to the units and effectively enables the AI back on.
  • TARGET: Will prevent units from engaging the target. Units still move around for cover etc...but won't hunt down the player. Works in groups as well. Excellent for keeping units inside bases or other areas without having them flank or engage anyone. They will still seek good cover if something is close by.
  • ANIM: completely freezes the unit, including breathing. Won't even blink. No move command works until the unit is unfrozen.
  • FSM: Essentially makes the enemy "dumber". Enemies react slower to enemy fire and the enemy stops using hand signals. Disabling FSM, can give the impression of untrained units as they react slower and are more disorganized than when FSM is enabled. Good for rebel fighters and when enabled better for professional armies.
Posted on August 3, 2006 - 14:31
hardrock
Notes from before the conversion: The "TARGET" section of the AI is likely different than what you would think. Normally, when an AI group is standing still and sees an enemy, the group will break formation and start moving towards the enemy. If you disable the "TARGET" AI, then the AI units will stay where they are at. Even if you disable the "MOVE" AI, the units will still move out to attack the enemy, unless you disable the "TARGET" AI. Disabling both these AI sections is useful when placing units in defensive positions. This way, you can have them stay behind their cover, and not run out into the open. This command has also a bug: after mission save or load the effect will be no longer active and you must set it again. It's also good way to detect number of saves and loads (loads can be recognized using time command).
Posted on Feb 7, 2009 - 14:31
GeneralCarver
Multiplayer Use as of ArmA v1.14: Contrary to the post above, using this command WILL disable A.I. movement ability if used with the "MOVE" parameter. Works even when the A.I. is grouped with other units. I use this command to set up stationary targets at objectives all the time. Works on a dedicated server.
Posted on September 19, 2015 - 09:00 (UTC)
Kenoxite
Beware that disabling "TARGET" AI to units in the player's group will disable the ability to execute engage orders issued by the player.
Posted on August 24, 2016 - 09:02 (UTC)
R3vo
As of version 1.65 dev., disableAI "MOVE" will also stop vehicles driven by AI.
Posted on September 26, 2016 - 19:34 (UTC)
James
Command is buggy in version 1.64.138497 as it disables the ability to drive vehicles for players. Tested with player disableAI "move". Entering a vehicle is possible, but not starting the engine. player enableAI "move" enables the player to drive again. Already in the feedback tracker: https://feedback.bistudio.com/T120346
Posted on Januaary 21, 2017 - 12:30 (UTC)
ilias48rus
Does not lower CPU usage of still AI without enemies in range
Posted on June 5, 2018 - 19:29 (UTC)
zwobot
In Operation Flashpoint/Cold War Assault, the disabled units are reset after a saveGame is executed (or the user manually saves the mission), i. e. the units will behave as if the disableAI command was never applied to them. Also in OFP there is no way to undo this command.