Almost done making an air strike, only problem, I want the jet fly by sound I have play when I laser the bomb in, can someone help giving me the correct code to make the sound play? Thanks
if ( SERVER ) then
resource.AddFile( "File directory from sound folder here" )
end
function SWEP:PrimaryAttack()
self:EmitSound( "File directory from sound folder here" )
end
I think that should work, but i’m shit at LUA too, so it could well fail.
Just look through other swep files, you’ll find out the same way I did.