disableAI (VBS1)

From Bohemia Interactive Community
Jump to: navigation, search
Introduced in Virtual Battlespace 1 version 2.12.14

Click on the images for descriptions

Introduced in

Game:
Virtual Battlespace 1
Version:
2.12.14

Description

Description:
Disable parts of the AI behaviour to get a better control over the actions of a unit. Disabled can be following sections:
  • "ANIM" - prevents a unit from changing back to the default animation.
  • "AUTOTARGET" - prevent the unit from assigning a target independently and watching unknown objects.
  • "MOVE" - disable the AI's movement.
  • "MOVEFORWARD" - prevents a unit from moving off a position but allows it to react to enemy etc.
  • "TARGET" - stop the unit to watch the assigned target.
This command's effects can be undone by enableAI (VBS1).

Syntax

Syntax:
unit disableAI section
Parameters:
unit: Object
section: String
Return Value:
Nothing

Examples

Example 1:
soldier1 disableAI "MOVEFORWARD"

Additional Information

Multiplayer:
-
See also:
enableAI (VBS1)

Notes

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Posted on August 17, 2006 - 08:56
Str
Notes from OFP command description: 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).

Bottom Section