BIS fnc objectFromNetId: Difference between revisions

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


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.58


| arma3 |= Game name
|gr1= Multiplayer


|1.58|= Game version
|descr= Extends MP-only [[objectFromNetId]] functionality to SP
____________________________________________________________________________________________


| Extends MP-only [[objectFromNetId]] functionality to SP |= Description
|s1= netId call [[BIS_fnc_objectFromNetId]]
____________________________________________________________________________________________


| netId call '''BIS_fnc_objectFromNetId'''; |= Syntax
|p1= netId: [[String]]


|p1= netId: [[String]]|= Parameter 1
|r1= [[Object]] - existing object or [[objNull]]
|p2=  |=


| [[Object]] - existing object or [[objNull]]|= Return value
|x1= <sqf>private _obj = "0:2" call BIS_fnc_objectFromNetId;</sqf>
____________________________________________________________________________________________
 
|x1= <code>_obj = "0:2" [[call]] [[BIS_fnc_objectFromNetId]];</code> |=
____________________________________________________________________________________________
 
| [[netId]], [[objectFromNetId]], [[groupFromNetId]], [[BIS_fnc_netId]], [[BIS_fnc_groupFromNetId]] |= See also


|seealso= [[netId]] [[objectFromNetId]] [[groupFromNetId]] [[BIS_fnc_netId]] [[BIS_fnc_groupFromNetId]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Network|{{uc:objectFromNetId}}]]
[[Category:Functions|{{uc:objectFromNetId}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:objectFromNetId}}]]

Latest revision as of 22:44, 12 July 2022

Hover & click on the images for description

Description

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

Syntax

Syntax:
netId call BIS_fnc_objectFromNetId
Parameters:
netId: String
Return Value:
Object - existing object or objNull

Examples

Example 1:
private _obj = "0:2" call BIS_fnc_objectFromNetId;

Additional Information

See also:
netId objectFromNetId groupFromNetId BIS_fnc_netId 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