GM:NotifyShouldTransmit

From Garry's Mod
Jump to: navigation, search
 GM:NotifyShouldTransmit( )

Description

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

NOTE 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
NOTE When the entity stops transmitting, Entity:IsDormant will only return true after this hook

Arguments

Entity ent

The entity that changed its transmission state.

Arguments

boolean shouldtransmit

True if we started transmitting to this client and false if we stopped.
Personal tools
Navigation