HasEntProp Function

Checks if an entity property exists on an entity.

bool HasEntProp(int entity, PropType type, const char[] prop)

Parameters

int entity

Entity/edict index.

PropType type

Property type.

const char[] prop

Property name.

Return Value

Whether the property exists on the entity.

Errors

Invalid entity.