getUnitState

From Bohemia Interactive Community
Revision as of 13:42, 22 October 2024 by Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.18 |arg= |eff= |gr1= AI Behaviour |descr= Returns current state of the AI unit, which could be one of the following: * 123 |s1= getUnitState unit |p1= unit: Object |r1= String - unit state (see description) |x1= <sqf>_soldierOne enableAI "Move";</sqf> |seealso= disableAI enableAI checkAIFeature enableAIFeature vehicleMoveInfo }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns current state of the AI unit, which could be one of the following:
  • 123
Groups:
AI Behaviour

Syntax

Syntax:
getUnitState unit
Parameters:
unit: Object
Return Value:
String - unit state (see description)

Examples

Example 1:
_soldierOne enableAI "Move";

Additional Information

See also:
disableAI enableAI checkAIFeature enableAIFeature vehicleMoveInfo

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