Garry's Mod Wiki

Garry's Mod Wiki

  GM:NotifyShouldTransmit( Entity entity, boolean shouldtransmit )

Description

Called whenever this entity changes its transmission state for this LocalPlayer, such as exiting or re entering the PVS (Potential Visibility Set).

This is the best place to handle the reset of Entity:SetPredictable, as this would be usually called when the player lags and requests a full packet update.

When the entity stops transmitting, Entity:IsDormant will only return true after this hook.

Arguments

1 Entity entity
The entity that changed its transmission state.
2 boolean shouldtransmit
True if we started transmitting to this client and false if we stopped.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...