I'm having this weird problem when trying to draw halos
hook.Add( "PreDrawHalos", "Orb Halos", function()
halo.Add( ents.FindByClass( 'tg_orb' ) , TCC_WHITE, 1.5, 1.5, 1, true, false )
end )
the above code works fine but as soon as i try to substitute ents.FindByClass like so
hook.Add( "PreDrawHalos", "Orb Halos", function()
halo.Add( ents.FindByName( 'NormalOrb' ) , TCC_WHITE, 1.5, 1.5, 1, true, false )
end )
it fails to find anything, I know for a fact i have successfully set the names of the orbs as (big thanks to Stickly) I am using it to make a rainbow orb rotate it's colours. Any ideas as to why it doesn't like finding by names in this hook?