Remove entity from client after SetPreventTransmit?
2 replies, posted
So I'm messing with putting props into different layers but am running into a problem where the entity still exists on the client after running SetPreventTransmit. But cannot be seen until you physgun it, which causes the entity to stay still on your screen with a halo around it yet for everyone else, you're moving the prop around like normal.
I've looked at:
SetNoDraw - Nothing
AddFlags(TRANSMIT_NEVER) - Only affects new joiners
SetPreventTransmit - Instantly hidden but the entity stays on the client
If it's something which might require a C++ dll then if anyone has information on how to access GMod's networking/entity functions to use in C++, that would be great.
Thanks.
Maybe SetNoDraw can help. It seems to make entities disappear both graphically and physically.
This is a super-secret technique I've been waiting to share:
local ClientRemove = FindMetaTable("CSEnt").Remove
-- In your function
ClientRemove(pEntity)
Sorry, you need to Log In to post a reply to this thread.