SetEntityFlags Function

Sets an entity's flags.

void SetEntityFlags(int entity, int flags)

Parameters

int entity

Entity index.

int flags

Entity flags, see entity flag defines above.

Errors

Invalid entity index, or lack of mod compliance.

Notes

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.