Arma 3 Scripting

Command in Multiplayer

netId

Also available as Markdown and JSON, or read the original wiki page.

Description

Get the unique ID of an object or a group.

Syntax

netId objOrGroup

Parameters:

Returns: String

Examples

Example 1

_playerNetId = netId player;

Multiplayer

See also

objectFromNetId · groupFromNetId · BIS_fnc_objectFromNetId · BIS_fnc_netId · BIS_fnc_groupFromNetId · BIS_fnc_objectVar

Community notes

Demellion

Even if the returned value is in format of owner:uniqueid, it doesn't follow the current ownership of an object (owner for example).

This command keeps the original owner of a created object.