How would i go about changing
[LUA]
function SWEP:DrawHUD()
halo.Add( ents.FindByClass( "player*" ), Color( 255, 0, 255 ), 1, 5, 2, 1, 1 )
end
[/LUA]
So it only shows people on team 1, and 2. And an alive check aswell?
You shouldn't add halos every frame, it should be done in the "PreDrawHalos" hook.
[QUOTE=Coffeee;44563859]You shouldn't add halos every frame, it should be done in the "PreDrawHalos" hook.[/QUOTE]
How would i go about adding halos only when the weapon is drawn for the localplayer with the predrawhook, and the same question remains How would i go about making a team check and alive check for halos ? (Still learning lua)
Sorry, you need to Log In to post a reply to this thread.