{"name":"behaviour","title":"behaviour","type":"command","url":"https://community.bistudio.com/wiki/behaviour","revid":369334,"updated":"2024-09-03T18:43:00Z","groups":["AI Behaviour"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"argument":"global"},"description":"Returns the behaviour of the individual unit, this is why it only accepts Object as the argument. For Arma 3 behaviour explanation see Arma_3_AI_Behavior","syntaxes":[{"syntax":"behaviour unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"String","type_expr":"String","description":"one of:\n- \"CARELESS\" - \"SAFE\" - \"AWARE\" - \"COMBAT\" - \"STEALTH\" - \"ERROR\" (Since Arma 3 v1.78 when used on empty vehicles and such)","text":"String - one of:\n\n- \"CARELESS\"\n- \"SAFE\"\n- \"AWARE\"\n- \"COMBAT\"\n- \"STEALTH\"\n- \"ERROR\" (Since Arma 3 v1.78 when used on empty vehicles and such)"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["_soldier setBehaviour \"CARELESS\";\n_b = behaviour _soldier; // returns \"CARELESS\""]}],"see_also":["AIBehaviour","setBehaviour","setWaypointBehaviour","combatMode","setCombatMode","skill","setSkill","Arma 3: AI Skill","setCombatBehaviour","combatBehaviour"]}