Going over the code, I found that nodes registered through vehicles.register_simplenode function have no sound because "sounds = " is missing in front of "default.node_sound_dirt_defaults()".
Also, I tried my hand at a disembarking effect in the form of a lock chirp: https://youtu.be/zB0gNADNkSY
- Code: Select all
if self.driver and clicker == self.driver then
object_detach(self, clicker, {x=1, y=0, z=1})
minetest.sound_play("lock_vehicle",
{gain = 4, max_hear_distance = 3, loop = false})
Using converted "car lock.mp3" by hawabaz, freesound.org