{"name":"stop","title":"stop","type":"command","url":"https://community.bistudio.com/wiki/stop","revid":369977,"updated":"2024-10-22T13:04:51Z","groups":["Unit Control"],"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":"local","effect":"global"},"description":"Stop an AI unit from turning or moving, preventing it to follow a watched object or engage an enemy properly - although if properly aligned, the unit -will- shoot the enemy. In essense, this is a scripted flag to suppress some of the AI procedures (to check the flag use stopped).\nIt may still change the stance if deemed appropriate (e.g. under fire). Use disableAI to disable specific AI capabilities.","syntaxes":[{"syntax":"unitName stop toggle","params":[{"name":"unitName","type":"Object","type_expr":"Object"},{"name":"toggle","type":"Boolean","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unitName"},"right":{"text":"toggle"}}],"examples":[{"code":["loon1 stop true;"]}],"see_also":["stopped","doStop","commandStop"]}