Difference between revisions of "behaviour"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
m (Bot: Reverted to revision 106260 by Lou Montana on 2018-03-25T16:29:06Z)
Line 51: Line 51:
[[Category:Scripting Commands ArmA|BEHAVIOUR]]
[[Category:Scripting Commands ArmA|BEHAVIOUR]]
[[Category:Scripting Commands ArmA2|BEHAVIOUR]]
[[Category:Scripting Commands ArmA2|BEHAVIOUR]]
[[Category:Command Group: Object Information|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Unit Control|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Revision as of 19:06, 3 December 2018

Introduced with Operation Flashpoint version 1.001.00Arguments of this scripting command don't have to be local to the client the command is executed on
Hover & click on the images for descriptions


Return the behaviour of a unit. For Arma 3 behaviour explanation see Arma_3_AI_Behavior


behaviour unitName
unitName: Object
Return Value:
String - One of "CARELESS", "SAFE", "AWARE", "COMBAT" and "STEALTH".


Example 1:
_soldier setBehaviour "CARELESS"; _b = behaviour _soldier; //returns "CARELESS"

Additional Information

See also:
behaviour descriptionAIBehavioursetBehavioursetWaypointBehaviourcombatModesetCombatModeskillsetSkillCfgAISkill


Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.


Posted on 14 Feb 2010
Although behaviour is called on an individual unit, what you are really getting back is the behaviour of that unit's group. Behaviour is a group setting.

Bottom Section