
# aom_vehicleapi
Steps to make a working vehicle.

## Sounds
Add this
```lua
_aomv_sounds = {
    bow_waves = {
        length = 5.2,
        name = "aom_longship_bow_waves",
        gain = 0.3, loop = 1,
        on_refresh = function(self, is_just_started)
            do return end
            local bow_waves = self._aomv_sounds.bow_waves
            local speed_factor = vector.length(self.object:get_velocity())
            core.log(speed_factor)
            speed_factor = aom_vehicleapi.clamp(speed_factor / 5, 0, 1)
            speed_factor = speed_factor ^ 2
            core.sound_fade(bow_waves.id, 1, speed_factor * (bow_waves.gain or 1))
        end,
    }
},
```

