so i have a boat that has custom movement.
somewhere on press W i set it's custom movement speed to 50 - and it works good. then i release the key
and i want it to slowly get down to 0 speed.
i've tried:
system every 1.0 sec && boat.custommovement.speed >0 set boat.custommovement.speed-10 - doesn't work
tried the same invoking a function - doesn't work
tried the same with every tick - doesn't work
tried recursion in function - breaks the javascript
so how exactly do i do it correctly?