clientOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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...)
m (Text replacement - "Killzone Kid" to "Killzone_Kid")
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- clientOwner -->
{{RV|type=command
{{Command
|arma3
|1.56


|gr1 = Multiplayer
|game1= arma3
|version1= 1.56


|gr1= Multiplayer


| Returns the [[Multiplayer_Scripting#Machine_network_ID | machine network ID]] of the client executing the command.
|descr= Returns the [[Multiplayer_Scripting#Machine_network_ID | machine network ID]] of the client executing the command.
| '''clientOwner'''
 
|p1=
|s1= [[clientOwner]]
|p2=
 
| [[Number]]
|r1= [[Number]]
|x1= <code>_id = '''clientOwner''';</code>
 
| [[owner]], [[groupOwner]], [[onPlayerConnected]], [[onPlayerDisconnected]], [[getClientState]], [[getClientStateNumber]], [[admin]], [[remoteExecutedOwner]]
|x1= <sqf>private _myNetworkId = clientOwner;</sqf>
|  |MPBEHAVIOUR=
 
|seealso= [[owner]] [[groupOwner]] [[onPlayerConnected]] [[onPlayerDisconnected]] [[getClientState]] [[getClientStateNumber]] [[admin]] [[remoteExecutedOwner]]
}}
}}


<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]


<h3 style='display:none'>Notes</h3>
 
<dl class="command_description">
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}


<!-- CONTINUE Notes -->
<dt></dt>
<dl class="command_description">
<dd class="notedate">Posted on 2016-02-17 - 18:54 (UTC)</dd>
<dd class="notedate">Posted on February 17, 2016 - 18:54 (UTC)</dd>
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dd class="note">
<dd class="note">
On hosted server there could be some inconsistency between [[clientOwner]], [[owner]] and object creator id, especially in missions started from save. On the dedicated server this command however works reliably.
On hosted server there could be some inconsistency between [[clientOwner]], [[owner]] and object creator id, especially in missions started from save.
On the dedicated server this command however works reliably.
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 14:48, 12 March 2024

Hover & click on the images for description

Description

Description:
Returns the machine network ID of the client executing the command.
Groups:
Multiplayer

Syntax

Syntax:
clientOwner
Return Value:
Number

Examples

Example 1:
private _myNetworkId = clientOwner;

Additional Information

See also:
owner groupOwner onPlayerConnected onPlayerDisconnected getClientState getClientStateNumber admin remoteExecutedOwner

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 2016-02-17 - 18:54 (UTC)
Killzone_Kid
On hosted server there could be some inconsistency between clientOwner, owner and object creator id, especially in missions started from save. On the dedicated server this command however works reliably.