netId: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|0.50|Game version=
|0.50


|gr1= Multiplayer |GROUP1=
|gr1= Multiplayer


| Unique ID of object or group.  As this command is MP only, you can use [[BIS_fnc_netId]], which extends the use to SP as well. See also: [[BIS_fnc_objectVar]] |DESCRIPTION=
| Unique ID of object or group.  As this command is MP only, you can use [[BIS_fnc_netId]], which extends the use to SP as well. See also: [[BIS_fnc_objectVar]]


| '''netId''' var |SYNTAX=
| '''netId''' var


|p1= var: [[Object]] or [[Group]] |PARAMETER1= 
|p1= var: [[Object]] or [[Group]]


| [[String]] |RETURNVALUE=
| [[String]]




|x1= <code>_playerNetId = [[netId]] [[player]];</code>|EXAMPLE1=
|x1= <code>_playerNetId = [[netId]] [[player]];</code>




| [[objectFromNetId]], [[groupFromNetId]], [[BIS_fnc_objectFromNetId]], [[BIS_fnc_netId]], [[BIS_fnc_groupFromNetId]], [[BIS_fnc_objectVar]] |SEEALSO=
| [[objectFromNetId]], [[groupFromNetId]], [[BIS_fnc_objectFromNetId]], [[BIS_fnc_netId]], [[BIS_fnc_groupFromNetId]], [[BIS_fnc_objectVar]]


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 02:11, 18 January 2021

Hover & click on the images for description

Description

Description:
Unique ID of object or group. As this command is MP only, you can use BIS_fnc_netId, which extends the use to SP as well. See also: BIS_fnc_objectVar
Groups:
Multiplayer

Syntax

Syntax:
netId var
Parameters:
var: Object or Group
Return Value:
String

Examples

Example 1:
_playerNetId = netId player;

Additional Information

See also:
objectFromNetIdgroupFromNetIdBIS_fnc_objectFromNetIdBIS_fnc_netIdBIS_fnc_groupFromNetIdBIS_fnc_objectVar

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Posted on October 19, 2018 - 13:40 (UTC)
demellion
NOTE: 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.