What dummy entity type to use for looping sound?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

What dummy entity type to use for looping sound?

Post by Earendel »

As part of this mod: viewtopic.php?f=93&t=38475
I am increasing a driverless vehicle's speed.

I need the engine sound to continue while the vehicle is moving even though there is no driver.

I think the best way to do this is to have a dummy entity that is playing a looping sound and just destroy it when the player gets in or the vehicle stops. The question is, what prototype type to use?

I can't think of anything suitable.

User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

Re: What dummy entity type to use for looping sound?

Post by Earendel »

I tried a lamp and a boiler but those both had serious issues. In the end I managed to get it working with "fire".

Post Reply

Return to “Modding help”