BIS fnc netId: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {2,}\}\}" to " }}")
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| arma3
|game1= arma3
|version1= 1.58


|1.58
|gr1= Multiplayer


|gr1 = Multiplayer
|descr= Extends MP-only [[netId]] functionality to SP


| Extends MP-only [[netId]] functionality to SP
|s1= objOrGrp call [[BIS_fnc_netId]]
 
| objOrGrp call '''BIS_fnc_netId''';


|p1= objOrGrp: [[Object]] or [[Group]]
|p1= objOrGrp: [[Object]] or [[Group]]


| [[String]] - net Id in format "owner:id" or "".
|r1= [[String]] - net Id in format "owner:id" or "".


|x1= <code>_objNetId = [[player]] [[call]] [[BIS_fnc_netId]]; // "0:2"</code>
|x1= <sqf>private _objNetId = player call BIS_fnc_netId; // "0:2"</sqf>


|x2= <code>_grpNetId = [[group]] [[player]] [[call]] [[BIS_fnc_netId]]; // "0:3"</code>
|x2= <sqf>private _grpNetId = group player call BIS_fnc_netId; // "0:3"</sqf>


| [[netId]], [[objectFromNetId]], [[groupFromNetId]], [[BIS_fnc_objectFromNetId]], [[BIS_fnc_groupFromNetId]]
|seealso= [[netId]] [[objectFromNetId]] [[groupFromNetId]] [[BIS_fnc_objectFromNetId]] [[BIS_fnc_groupFromNetId]]
}}
}}
[[Category:Functions|{{uc:netId}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:netId}}]]

Latest revision as of 23:44, 12 July 2022

Hover & click on the images for description

Description

Description:
Extends MP-only netId functionality to SP
Execution:
call
Groups:
Multiplayer

Syntax

Syntax:
objOrGrp call BIS_fnc_netId
Parameters:
objOrGrp: Object or Group
Return Value:
String - net Id in format "owner:id" or "".

Examples

Example 1:
private _objNetId = player call BIS_fnc_netId; // "0:2"
Example 2:
private _grpNetId = group player call BIS_fnc_netId; // "0:3"

Additional Information

See also:
netId objectFromNetId groupFromNetId BIS_fnc_objectFromNetId BIS_fnc_groupFromNetId

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