{"name":"selectNoPlayer","title":"selectNoPlayer","type":"command","url":"https://community.bistudio.com/wiki/selectNoPlayer","revid":379374,"updated":"2026-10-30T23:58:00Z","groups":["Object Manipulation"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Switches player to no unit, makes player return objNull.","syntaxes":[{"syntax":"selectNoPlayer","params":[],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"nullary"}],"examples":[{"text":"Single player:\n\n```sqf\nselectNoPlayer;\nhint str player; // <NULL-object>\n```\n\nRough multiplayer emulation:\n\n```sqf\n_noPlayer = createGroup sideLogic createUnit [\n    \"Logic\",\n    [0,0,1000],\n    [],\n    0,\n    \"NONE\"\n];\nselectPlayer _noPlayer;\nhint str player; // L Charlie 4-3:1 (KK)\n```","code":["selectNoPlayer;\nhint str player; // <NULL-object>","_noPlayer = createGroup sideLogic createUnit [\n\t\"Logic\",\n\t[0,0,1000],\n\t[],\n\t0,\n\t\"NONE\"\n];\nselectPlayer _noPlayer;\nhint str player; // L Charlie 4-3:1 (KK)"]}],"multiplayer":"Does **not** work in multiplayer.","see_also":["selectPlayer"],"notes":[{"user":"Worldeater","date":"2010-10-15T07:48:00Z","text":"player returns objNull after this command has been used. It also has at least the following side effects: closeDialog won't work anymore and onKeyDown event handlers cease to detect the ESC key. In order to get things back to normal a new player object has to be set with selectPlayer. Using objNull won't cut it in this case."}]}