HolyLib Wiki

pvs.SetStateFlags

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

Description

Sets the State flag for this entity. Unlike pvs.OverrideStateFlags, this won't be reset after the snapshot.

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