remoteExecutedOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= ____________________________________________________________________________________________ |arma3dev |= Game |1.69|= Game Version |arg= |= Multiplayer Arguments...")
 
mNo edit summary
Line 14: Line 14:
|x1= <code>_callerRE = [[remoteExecutedOwner]];</code> |= Example 1
|x1= <code>_callerRE = [[remoteExecutedOwner]];</code> |= Example 1
|x2= Send request to the server and get immediate response:<code>{
|x2= Send request to the server and get immediate response:<code>{
// in this scope, the remoteExecutedOwner equals clientOwner of the sender
// so using it as target in remoteExec will send response right back at him
[
[
[[time]], // mission time value on the server
[[time]], // mission time value on the server

Revision as of 20:57, 21 April 2017

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.69|1.69]]
Hover & click on the images for description

Description

Description:
Returns clientOwner of the PC, which initiated Remote Execution call. If used in SP or outside of remote executed context, the command returns 0. To check if the context was remote executed or remote executed from JIP queue, use isRemoteExecuted and isRemoteExecutedJIP
Groups:
Uncategorised

Syntax

Syntax:
remoteExecutedOwner
Return Value:
Number - id of the client initiated remote execution

Examples

Example 1:
_callerRE = remoteExecutedOwner;
Example 2:
Send request to the server and get immediate response:{ // in this scope, the remoteExecutedOwner equals clientOwner of the sender // so using it as target in remoteExec will send response right back at him [ time, // mission time value on the server { hint format [ "Request recieved!\nMission time value on the server is: %1", _this ]; } ] remoteExec ["call", remoteExecutedOwner]; // server response to the sender } remoteExec ["call", 2]; // send request to server

Additional Information

See also:
isRemoteExecutedisRemoteExecutedJIPremoteExecremoteExecCallcanSuspendpublicVariableClientadminownerclientOwnergroupOwner

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

[[Category:Introduced with arma3dev version 1.69]][[ Category: arma3dev: New Scripting Commands | REMOTEEXECUTEDOWNER]][[ Category: arma3dev: Scripting Commands | REMOTEEXECUTEDOWNER]]

Bottom Section