remoteExecutedOwner

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.70
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.70

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

Syntax

Syntax:
remoteExecutedOwner
Return Value:
Number - id of the client, which 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

Multiplayer:
-
See also:
isRemoteExecutedisRemoteExecutedJIPremoteExecremoteExecCallcanSuspendpublicVariableClientadminownerclientOwnergroupOwnerdidJIPOwner

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Bottom Section

Posted on September 11, 2017 - 09:31 (UTC)
Demellion
NOTE: Always be sure to check if the remoteExecutedOwner is not equal to 0 when sending a remoteExec/remoteExecCall packet back, as this will result in sending packet to ANYONE (0): if (remoteExecutedOwner isEqualTo 0) exitWith {}; // Not valid RE owner _gearArray remoteExecCall ['someGearFunction',remoteExecutedOwner]; Will prevent from code being accidentaly sent for everyone on the server.