clientOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory *\| *arma3 *\| *(New )?Scripting Commands\}\}" to "")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command
|arma3
 
|1.56
|game1= arma3
|version1= 1.56


|gr1= Multiplayer
|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'''| [[Number]]
 
|x1= <code>_id = '''clientOwner''';</code>
|s1= [[clientOwner]]
 
|r1= [[Number]]
 
|x1= <code>[[private]] _myNetworkId = [[clientOwner]];</code>
 
|seealso= [[owner]], [[groupOwner]], [[onPlayerConnected]], [[onPlayerDisconnected]], [[getClientState]], [[getClientStateNumber]], [[admin]], [[remoteExecutedOwner]]
|seealso= [[owner]], [[groupOwner]], [[onPlayerConnected]], [[onPlayerDisconnected]], [[getClientState]], [[getClientStateNumber]], [[admin]], [[remoteExecutedOwner]]
}}
}}
Line 19: Line 25:
<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>

Revision as of 14:24, 13 June 2021

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:
ownergroupOwneronPlayerConnectedonPlayerDisconnectedgetClientStategetClientStateNumberadminremoteExecutedOwner

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 February 17, 2016 - 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.