|
Edit: My script was actually correct. I just had to adjust the number. Hello, I have a script for creating campfires. However, I only want the "canBuild" boolean to be true if the character is on the ground. This is because at the moment, if you stand on top of a campfire and you make another campfire, the new campfire will be floating in the air. If you continue like this, you can make a staircase of campfires. So I tried something like this:
However, while playing the game, I notice that the Transform Positions don't update as you move around. Any help is appreciated.
(comments are locked)
|

Transform does update. You've probably got the script on the wrong object.
It turns out that it was working fine. I just had the number (5.3) set way too high. It's working good now. Thanks for the comment though