clientOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "Killzone Kid" to "Killzone_Kid")
 
(39 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- clientOwner -->
{{RV|type=command
{{Command|= Comments
 
|arma3|= Game name
|game1= arma3
|1.56|= Game version
|version1= 1.56
| Returns the client's [[owner]] id |DESCRIPTION=
 
| '''clientOwner''' |SYNTAX=
|gr1= Multiplayer
|p1=  |PARAMETER1=
 
|p2=  |PARAMETER2=
|descr= Returns the [[Multiplayer_Scripting#Machine_network_ID | machine network ID]] of the client executing the command.
| [[Number]] |RETURNVALUE=
 
|x1= <code>_id = '''clientOwner''';</code>|EXAMPLE1=  
|s1= [[clientOwner]]
[[owner]], [[groupOwner]], [[onPlayerConnected]], [[onPlayerDisconnected]], [[getClientState]], [[getClientStateNumber]], [[admin]], [[remoteExecutedOwner]]|SEEALSO=
 
|  |MPBEHAVIOUR=
|r1= [[Number]]
 
|x1= <sqf>private _myNetworkId = clientOwner;</sqf>
 
|seealso= [[owner]] [[groupOwner]] [[onPlayerConnected]] [[onPlayerDisconnected]] [[getClientState]] [[getClientStateNumber]] [[admin]] [[remoteExecutedOwner]]
}}
}}


<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[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>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]


<!-- 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 13: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.