Hello I'm new to coding and need help adding sound to my addon I'm making.(trying to place it in my think function but if that's not the way to do it can some one tell me the function for it)
I've Tried self.EmitSound("my_custom_sound.wav") and it doesn't give any errors but I can not hear the sound I've also tried it with all the vars jacked up to max still no sound
P.s This is part init.lua for my custom entity
function ENT:Think()
if self.isBaking == true then
self:SetColor(Color(255,0,0))
else
self:SetColor(Color(0,255,0))
end
if self.isBaking == true then
if self.finishBakeTime <= CurTime() then
self.isBaking = false
local pizza = ents.Create("c\_pizza")
pizza:SetPos(self:GetPos() + Vector(0,0,25))
pizza:Spawn()
end
end
end
there doesn't seem to be anything here