In AnyLogic I want a 3D objects Z value to mirror a Bridge Cranes Z value. I can get the Object to Mirror the Crane's Bridge's Z value but not the Hook of the crane (which is what I want). Any help would be much appreciated.
This is what I have so far, unfortunately the rectangle follows the bridge and not the crane hook itself. 
As you can, see so far I have used the function craneBridge.getZ() I have also tried overheadCrane.getZ(), No error message comes up but they do not give the required results.
Other functions I have tried are : craneBridge.hoist.getZ() overheadCrane.hoist.getZ() craneBridge.attractor.getZ() etc. (these get error messages)
If there is a workaround anyone can think of that would work also, the main aim is that the yellow block remains at the same height as the crane hoist, regardless of how it is done.