when I made a pulse-based door system, I noticed that if we change the location of the door on the stage, the strength of the pulse changes, that is, how much further away is the door from the zero cardenates, it is so much stronger than the pulse, and that the float value itself does not change, is it somehow related that it uses global cordenates instead of local ones? if so, how can I change it to local?, if not, how can I solve this problem.
here is a video so that you can understand the code itself.