{"name":"BIS_fnc_setRank","operator":null,"title":"BIS fnc setRank","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_setRank","revid":349416,"updated":"2023-11-08T16:27:30Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Set rank of vehicle crew.","syntaxes":[{"syntax":"[target, rank] call BIS_fnc_setRank","since":null,"effect":null,"exec":null,"params":[{"name":"target","type":"Object","optional":false,"default":null,"description":"the vehicle whose crew's rank should be adjusted","types":["Object"],"since":null,"text":"target: Object - the vehicle whose crew's rank should be adjusted"},{"name":"rank","type":"String or Number","optional":false,"default":null,"description":"rank name or rank ID, can be:\n\n0 - \"Private\"\n\n1 - \"Corporal\"\n\n2 - \"Sergeant\"\n\n3 - \"Lieutenant\"\n\n4 - \"Captain\"\n\n5 - \"Major\"\n\n6 - \"Colonel\"","types":["String","Number"],"since":null,"text":"rank: String or Number - rank name or rank ID, can be:\n\n0 - \"Private\"\n\n1 - \"Corporal\"\n\n2 - \"Sergeant\"\n\n3 - \"Lieutenant\"\n\n4 - \"Captain\"\n\n5 - \"Major\"\n\n6 - \"Colonel\""}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"}}],"examples":[{"text":"```sqf\n[vehicle player, \"Captain\"] call BIS_fnc_setRank;\n```","code":["[vehicle player, \"Captain\"] call BIS_fnc_setRank;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["rank","setRank"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Object Manipulation","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}