• hudpaint inside of starttouch?
    1 replies, posted
function ENT:StartTouch( activator, ent ) function DrawBox() draw.RoundedBox( 10, 0, 0, 100, 100, Color(0, 0, 0, 180) ) end hook.Add("HUDPaint", "DrawBox", DrawBox); end I'd like a hud to get painted after a player touches an entity. Doesn't seem to work though. If I put the DrawBox code outside of the starttouch function it works fine and I get a little box when I start the level. But if it's based on touching an entity then the entity touched just fine but no box is drawn. Anyone know how to do this? Thanks
StartTouch is serverside.
Sorry, you need to Log In to post a reply to this thread.