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)...
I would like the ability, maybe in the workbench, maybe as a mod, to make the map local to the player and with some sort of option to share markers.
We had a mod for this in Arma 3 and it was great.
No more placing a marker and having it magically appear on someone's map 10km away, instead you communicated via the radio using grids