HolyLib Wiki

pvs.PreventTransmitAllExcept

  pvs.PreventTransmitAllExcept( Entity entity, number ignoreflags = 0 )

Description

Prevents every entity currently being checked for transmission from being sent, except for the given entity/entities.

Only use this function inside the HolyLib:PreCheckTransmit or HolyLib:PostCheckTransmit hook!

Arguments

1Entity entity

The entity(s) that should keep being transmitted. Can also be a table and EntityList of entities

2number ignoreflags = 0

A combination of the pvs.FLEDICT* flags. Entities whose current state flags match any of these bits are skipped and left untouched.