clientOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
m (Text replacement - "Killzone Kid" to "Killzone_Kid")
 
(42 intermediate revisions by 4 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>
 
<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>
<dt></dt>
<!-- CONTINUE Notes -->
<dd class="notedate">Posted on 2016-02-17 - 18:54 (UTC)</dd>
<dl class="command_description">
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
<dd class="notedate">Posted on February 17, 2016 - 18:54 (UTC)</dd>
<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 -->
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]

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.