SetEntityFlags Function

Sets an entity's flags.

void SetEntityFlags(int entity, int flags)


int entity

Entity index.

int flags

Entity flags, see entity flag defines above.


Invalid entity index, or lack of mod compliance.


The entity flags as defined above are internally translated by SM to match the current game's expected value for the flags as the actual values can differ per engine.