{"name":"setEffectiveCommander","title":"setEffectiveCommander","type":"command","url":"https://community.bistudio.com/wiki/setEffectiveCommander","revid":322840,"updated":"2022-06-26T21:14:08Z","groups":["Unit Control"],"status":"ok","games":{"arma3":"1.96"},"since":"arma3 1.96","arma3_since":"1.96","locality":{"argument":"global","effect":"local"},"description":"Sets effectiveCommander of the given vehicle. Effective commander is the person who commands the vehicle, i.e. gives commands to the driver.\nEvery time a person gets in or out of a vehicle, effective commander eligibility is recalculated by the engine based on the current crew.\nUse this command to force desired effective commander.","syntaxes":[{"syntax":"vehicle setEffectiveCommander person","params":[{"name":"vehicle","type":"Object","type_expr":"Object"},{"name":"person","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"vehicle"},"right":{"text":"person"}}],"examples":[{"code":["vehicle player setEffectiveCommander player;"]}],"multiplayer":"In multiplayer, execute globally.","see_also":["effectiveCommander","commander","vehicleMoveInfo"]}