garrysmod-requests
garrysmod-requests copied to clipboard
Add function to force remove the entity on the client
Details
We can make the entity to stop transmitting but the entity still exists on the client. It definitely needs function (not necessary, but very useful) to remove it on all the clients (or, perhaps, just client).
what do you mean
what do you mean
Just read the description
I'd like more clarification too
Uh.
You can make the shared entity using ents.Create.
After that, you can use ENTITY:UpdateTransmitState to stop the entity from transmitting to the clients. But the problem is that if you made an entity and it stopped transmitting, then it still exists on already connected clients.
That would be great if we could remove entity that exists on the client and isnt transmitting or make it remove automatically.
Could maybe try something like
local ent = ents.Create(...)
-- https://wiki.facepunch.com/gmod/Entity:SetPreventTransmit
ent:Spawn()
And then when it gets transmitted next it.... what
It's still relevant. It would be desirable to get an answer from Rubat.