owner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "|= Game name" to "|Game name=")
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma2 |= Game name
| arma2 |Game name=


|1.00|= Game version
|1.00|Game version=
 
|exec= server|=
|arg= global |Multiplayer Arguments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| On server machine, returns the ID of the client where the object is local. Otherwise returns 0. |= Description
| On server machine, returns the ID of the client where the object is [[local]]. Otherwise returns 0. For use on clients [[clientOwner]] command is available. To find out the owner of a [[Group]], use [[groupOwner]].|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''owner''' object |= Syntax
| '''owner''' object |SYNTAX=


|p1= object: [[Object]] -  |= PARAMETER1
|p1= object: [[Object]] -  |PARAMETER1=  


|p2= |= PARAMETER2
|p2= |PARAMETER2=  


|p3= |= PARAMETER3
|p3= |PARAMETER3=  


| [[Number]] |= RETURNVALUE
| [[Number]] |RETURNVALUE=  




|x1= <code>_clientID = [[owner]] _someobject;</code>|= EXAMPLE1
|x1= <code>_clientID = [[owner]] _someobject;</code>|EXAMPLE1=  


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[publicVariableClient]], [[setOwner]], [[setGroupOwner]], [[groupOwner]], [[flagOwner]] |= SEEALSO
| [[publicVariableClient]], [[setOwner]], [[setGroupOwner]], [[groupOwner]], [[flagOwner]], [[onPlayerConnected]], [[didJIPOwner]], [[local]], [[admin]], [[remoteExecutedOwner]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}
Line 45: Line 48:
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on March 24, 2015 - 06:31 (UTC)</dd>
<dt class="note">[[User:Benargee|Benargee]]</dt>
<dd class="note">
This command seems to always return 0 from the clients computer on a hosted mission. In my experience it only reliably works from the host computer. Results are unknown on a dedicated server as of writing this note, as I have not tested it.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 15:52, 1 September 2019

Hover & click on the images for description

Description

Description:
On server machine, returns the ID of the client where the object is local. Otherwise returns 0. For use on clients clientOwner command is available. To find out the owner of a Group, use groupOwner.
Groups:
Uncategorised

Syntax

Syntax:
owner object
Parameters:
object: Object -
Return Value:
Number

Examples

Example 1:
_clientID = owner _someobject;

Additional Information

See also:
publicVariableClientsetOwnersetGroupOwnergroupOwnerflagOwneronPlayerConnecteddidJIPOwnerlocaladminremoteExecutedOwner

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

Notes

Bottom Section