Arma 3 Scripting

remoteExecutedOwner

  • Arma 3 v1.70

Command · Markdown · JSON · original wiki page

Description

Returns the machine network ID of the client that initiated Remote Execution.

Important

Running this command

  • in a Single Player environment
  • outside of a remote-executed context
  • in a remote-executed context received from a Headless Client

will return 0 by design. To check if the context is remote executed, use isRemoteExecuted or isRemoteExecutedJIP.

Syntax

remoteExecutedOwner

Returns: Number - returns zero in the specific cases listed in the Description

Examples

Example 1

private _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 received!\nMission time value on the server is: %1",
                _this
            ];
        }
    ]
    remoteExec ["call", remoteExecutedOwner]; // server response to the sender
}
remoteExec ["call", 2]; // send request to server

See also

isRemoteExecuted · isRemoteExecutedJIP · remoteExecutedJIPID · remoteExec · remoteExecCall · canSuspend · publicVariableClient · admin · owner · clientOwner · groupOwner · didJIPOwner

Community notes