remoteExecutedJIPID: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.18 |branch= dev |gr1= Multiplayer |descr= Returns JIP ID of the persistent call generated from JIP queue for the joining player (see remoteExec). |s1= remoteExecutedJIPID |r1= String - JIP ID |x1= <sqf>_jipid = remoteExecutedJIPID;</sqf> |x2= <sqf> /* Have mission with 2 players. First player starts local server and executes given code Second player joins the server and sees the 'all good' message Second pl...")
 
No edit summary
 
Line 23: Line 23:
First player kills 'bob'
First player kills 'bob'
Second player joins back and sees 'removing JIP call' message
Second player joins back and sees 'removing JIP call' message
Second player logs out then joins back it, no message as call was removed
Second player logs out then joins back in, no message as call was removed
*/
*/



Latest revision as of 15:21, 14 July 2024

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.18.

Description

Description:
Returns JIP ID of the persistent call generated from JIP queue for the joining player (see remoteExec).
Groups:
Multiplayer

Syntax

Syntax:
remoteExecutedJIPID
Return Value:
String - JIP ID

Examples

Example 1:
_jipid = remoteExecutedJIPID;
Example 2:
/* Have mission with 2 players. First player starts local server and executes given code Second player joins the server and sees the 'all good' message Second player logs out First player kills 'bob' Second player joins back and sees 'removing JIP call' message Second player logs out then joins back in, no message as call was removed */ private _fnc = { if (isRemoteExecutedJIP) then { remoteExecutedJIPID splitString "|" params ["_myID", "_netID"]; private _obj = objectFromNetId _netID; if (!alive _obj) then { hint "object is dead or deleted, removing JIP call"; remoteExec ["", remoteExecutedJIPID]; } else { hint "JIP call, all good, doing something"; }; }; }; private _bob = group player createUnit [typeOf player, position player, [], 0, "NONE"]; private _myID = "lalala"; private _jipID = [_myID, netId _bob] joinString "|"; [[], _fnc] remoteExec ["call", 0, _jipId];

Additional Information

See also:
remoteExecutedOwner isRemoteExecuted isRemoteExecutedJIP remoteExec remoteExecCall canSuspend publicVariableClient admin owner clientOwner groupOwner didJIPOwner

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