Moving component relative to its original position with maximum and minimum distance



Hi guys. I am trying to move this equipment of a spaceship relative to its original position. the equipments are activated by selecting number key 1-9. When equipment 1 is selected, i can be moved forward and backward from its original position. I put a limiti how far it can move by float variables MaxForwardDistance and MinBackwardDistance. When i move the equipment to Max or Min, the equipment cannot be moved anymore. Any idea how to fix this?

Hey @aminamshow!

You can achieve your desired behavior like this:

Hope this helps! :innocent: