GetEntPropArraySize Function

Retrieves the count of values that an entity property's array can store.

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

Parameters

int entity

Entity/edict index.

PropType type

Property type.

const char[] prop

Property name.

Return Value

Size of array (in elements) or 0 if property is not an array.

Errors

Invalid entity or property not found.