• Paint HUD upon touching an entity
    3 replies, posted
I don't understand this. Can I call the HUDPaint hook inside a the entitiy's StartTouch hook or something?
[lua] function ENT:StartTouch() hook.Add("HUDPaint","MyHook",function () // Do stuff end end function ENT:EndTouch() hook.Remove("HUDPaint","MyHook") end [/lua]
much appreciated, but i thought you can't call clientside hooks through the server, will this work if i put it in shared.lua?
shared.lua is shared, which means it is called on the client and the server. So yes, it should.
Sorry, you need to Log In to post a reply to this thread.