netId: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (better function) |
Lou Montana (talk | contribs) (Add 2.18 feature) |
||
(43 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 0.50 | |||
| | |game2= arma2oa | ||
|version2= 1.63 | |||
| | |gr1= Multiplayer | ||
| | |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= [[netId]] objOrGroup | ||
|p1= objOrGroup: [[Object]] or [[Group]] | |||
| | |r1= [[String]] | ||
|x1= <sqf>_playerNetId = netId player;</sqf> | |||
| [[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. | |||
}} | }} | ||
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.