Hi you need to use 'Mouse Pick 2D'
Then 'get vector 2xy'
get the x and y,
Then Set Vector3xyz
place the x and y variable and set z to the desired distance (z pos from your objects)
Now you can use this value to move.
or you could get my freshly made custom action "MousePick2dToVector3" on the
EcosystemBy the way you should use 'Set Fsm Vector 3' to set the value on the other object.
on a local variable.
You should avoid using globals for this, its a bad way of 'coding' and easy to hack (cheat)
i only use globals if i need to connect a prefab to another object when dropped in the game @ runtime.