HolyLib Wiki

OverrideStateFlags

  pvs.OverrideStateFlags( Entity entity, number flag, boolean engine = false )

Description

Overrides the State flag for this Snapshot.

You should only use this inside the SetupPlayerVisibility hook.
Should be used inside the HolyLib:PreCheckTransmit or SetupPlayerVisibility hook as else it will affect the next transmit of any player!

Only use the engine argument if you know what your doing

Arguments

1Entity entity
the entity to add. Can also be a table and EntityList of entities
2number flag
the state flags to use
3boolean engine = false
If set to true you can override the edict flags themselfs instead of just the state flags