1. Create a mission with 2 playable slots. Add these entries to the description.ext:
enableDebugConsole = 2;
respawn = 3;
2. Start the mission as host (H) in LAN and connect a second instance as client (C).
3. Look as C at H and execute
cursorTarget setVariable ["test", 33, true];
via debug console.
4. Check
cursorTarget getVariable ["test", -1];
on C via debug console.
It returns 33.
Then check
player getVariable ["test", -1];
on H.
Also returns 33 as expected.
5. Leave the game with C. Reconnect as JIP.
6. Repeat step 4. Both machines return 33 as expected.
7. As C kill H. H respawns.
8. Repeat step 4. Both machines return 33 as expected (the public version of setVariable is persistent after respawning)
9. Leave the game with C. Reconnect as JIP. (Same as step 5.)
10. Repeat step 4. On H the variable will still be 33. On C it will return -1 instead. The variable is gone on the JIP client.