How do I infinitely loop a sound while using EmitSound? (Say I want an entity to always be looping a song.)
Use CreateSound and add loop flags to the sound file. It’s the best way, instead of fucking around with timers and manually retrieving song length. If that’s not an option, good luck with fucking with timers and sound lengths.
I want it to move around with the entity.
CreateSound does that as well. You can parent it to a specified entity in the function’s arguments.