Author Topic: Playing music files through weapons?  (Read 952 times)

Basically, I want to make a guitar mod, but a sort of "simplified" one. not like that one amazing instrument mod, but one that pulls a music file from the .zip or something like that, that is chosen randomly. is this possible? or can only "sound effects" be pulled for weapons. If it is possible, what could be the code for an "onclick enabling/disabling, chosen randomly" for the music?
« Last Edit: May 22, 2018, 03:53:52 PM by CM1107ProjectInfinium »

WeaponImage::onFire(%this,%obj,%slot) is called whenever a weapon fires. Use that to 'trigger' when music is played. As for playing music, look at the stereo vehicle add-on to see how music is played thru code