{"name":"netId","title":"netId","type":"command","url":"https://community.bistudio.com/wiki/netId","revid":364973,"updated":"2024-07-04T17:25:50Z","groups":["Multiplayer"],"status":"ok","games":{"arma3":"0.50","arma2oa":"1.63"},"since":"arma3 0.50","arma3_since":"0.50","description":"Get the unique ID of an object or a group.","syntaxes":[{"syntax":"netId objOrGroup","params":[{"name":"objOrGroup","type":"Object or Group","type_expr":"Object | Group"}],"returns":{"type":"String","type_expr":"String"},"form":"unary","right":{"text":"objOrGroup"}}],"examples":[{"code":["_playerNetId = netId player;"]}],"multiplayer":"- In singleplayer: Arma 3 v2.18 returns a net ID (different from BIS_fnc_netId's output), before that it returned an empty string in single player (see BIS_fnc_netId and BIS_fnc_objectVar)\n- In multiplayer: works as described","see_also":["objectFromNetId","groupFromNetId","BIS_fnc_objectFromNetId","BIS_fnc_netId","BIS_fnc_groupFromNetId","BIS_fnc_objectVar"],"notes":[{"user":"Demellion","date":"2018-10-19T13:40:00Z","text":"Even if the returned value is in format of **owner:uniqueid**, it doesn't follow the current ownership of an object (owner for example).\nThis command keeps the **original owner** of a created object."}]}