netId: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ") |
Lou Montana (talk | contribs) (Add 2.18 feature) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 0.50 | |version1= 0.50 | ||
|game2= arma2oa | |||
|version2= 1.63 | |||
|gr1= Multiplayer | |gr1= Multiplayer | ||
|descr= | |descr= Get the unique ID of an object or a group. | ||
|mp= <nowiki/> | |||
* In singleplayer: {{GVI|arma3|2.18|size= 0.75}} 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]]) | |||
* In multiplayer: works as described | |||
|s1= | |s1= [[netId]] objOrGroup | ||
|p1= | |p1= objOrGroup: [[Object]] or [[Group]] | ||
|r1= [[String]] | |r1= [[String]] | ||
|x1= < | |x1= <sqf>_playerNetId = netId player;</sqf> | ||
|seealso= [[objectFromNetId]] | |seealso= [[objectFromNetId]] [[groupFromNetId]] [[BIS_fnc_objectFromNetId]] [[BIS_fnc_netId]] [[BIS_fnc_groupFromNetId]] [[BIS_fnc_objectVar]] | ||
}} | }} | ||
{{Note | |||
|user= Demellion | |||
|timestamp= 20181019134000 | |||
|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).<br> | |||
This command keeps the '''original owner''' of a created object. | |||
}} | |||
<br>This command keeps the '''original owner''' of a created object. | |||
Latest revision as of 18:25, 4 July 2024
Description
- Description:
- Get the unique ID of an object or a group.
- Multiplayer:
-
- In singleplayer: 2.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)
- In multiplayer: works as described
- Groups:
- Multiplayer
Syntax
Examples
- Example 1:
Additional Information
- See also:
- objectFromNetId groupFromNetId BIS_fnc_objectFromNetId BIS_fnc_netId BIS_fnc_groupFromNetId BIS_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
- Posted on Oct 19, 2018 - 13:40 (UTC)
-
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.