Sorry guys but form all forum posts and my experience this command "setowner" might be bugged from arma beginig - it sometimes work sometimes not on dedicated - sorry BI do nothing in this case from years - shame 😞
in my case it work in most cases but sometimes when I move to unit for capture it (joint to my group) using [(_this#0),clientowner] remoteexeccall ["setOwner",2,false] - this method not working at all, AI it stay remote forever and is no possibile to change it's locality to any other client, in WIKI is not any description when this command not affect on AI so how to find solution in this situation?
I have also problems with this command setowner by [(_this#0),clientowner] remoteexeccall ["setOwner",2,false] not working on some AI units on dedicted, sometimes some units stay still remote after apply this command and is no any logical explanation to it (unit is not used by any other client or HC on dedicated it only one client - me and this command not work on some units, for rest it working fine so WTF?? what are circumstances to block this translation by serwer any ansver from BI possibile??
Short answer...
_actionCode = {
params [ "_target", "_caller", "_id", "_args" ]; // _args will be [_baseEntry1] as passed
_args params[ "_to" ]; // _to will be _baseEntry1
Long answer, maybe an easier way to make the connections (this is presuming all exit/entries of the same number are tied to each other entry_1 goes to exit_1 and visa versa)...