Page MenuHomeFeedback Tracker

"Unknown enum value" error in disableAI
Reviewed, NormalPublic

Description

When I trying to execute command

player disableAI "WEAPONAIM";

an error occurs

Error in expression <player disableAI "WEAPONAIM";>
Error position: <disableAI "WEAPONAIM";>
Error Foreign error: Unknown enum value: "WEAPONAIM"
}

An error occurs only with "WEAPONAIM". Other argumets like "TARGET", "ALL", etc. works fine.

Arma 3 version 1.80.143869

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  1. Open 3DEN Editor
  2. place player
  3. write in player's init:
player disableAI "WEAPONAIM";
  1. launch mission

Event Timeline

DrSova created this task.Dec 31 2017, 12:32 AM

Error appears with AI too

DrSova updated the task description. (Show Details)Dec 31 2017, 12:35 AM
Wulf changed the task status from New to Reviewed.Jan 2 2018, 6:04 PM
Wulf added a subscriber: Wulf.

Hello.

From Wiki
"Disable parts of the AI behaviour to get a better control over the actions of a unit."

Which means using it on you the player is pointless since you are in control. However after some testing there indeed seems to be a problem with WEAPONAI when used properly on an AI.