Why does the speed of my actor remain the same?



My speed isn’

  1. List item

t increasing.

Hey there @Xiontheman1! So the first thing I noticed, is that in your BeginOverlap you’re casting to check if it’s vehicle8 that you’re overlapping with, checking it’s variable Speed adding 90,000 and re-setting that vehicle’s Speed variable. This may be intended but if your speed is influenced by anything in that script it could be nullifying this change immediately. So you need to verify the overlap is happening, and the cast is successful, you could use a breakpoint or a print string behind the Set Speed printing speed’s value. This can give us some good information on if it’s even firing the event at all.
Now to move on to the other script.

So OnBeginPlay you are setting the speed to 600 then printing it every 0.2 seconds. That clamp isn’t doing anything, as the value portion of the node on the left is the only thing it can clamp. If this can have variable speeds at the start, you’d need to clamp where that variable speed is coming from. If you were intending to clamp all speed changes coming in, you’ll likely want to convert (setting the speed at all) to a function/event.