Arma 3 Scripting

selectNoPlayer

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Command · Markdown · JSON · original wiki page

Description

Switches player to no unit, makes player return objNull.

Syntax

selectNoPlayer

Returns: Nothing

Examples

Example 1

Single player:

selectNoPlayer;
hint str player; // <NULL-object>

Rough multiplayer emulation:

_noPlayer = createGroup sideLogic createUnit [
    "Logic",
    [0,0,1000],
    [],
    0,
    "NONE"
];
selectPlayer _noPlayer;
hint str player; // L Charlie 4-3:1 (KK)

Multiplayer

Does not work in multiplayer.

See also

selectPlayer

Community notes

Worldeater

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.