TF2_GetObjectType Function

Gets an entity's object type.

TFObjectType TF2_GetObjectType(int entity)

Parameters

int entity

Entity index.

Return Value

Current TFObjectType of entity.

Errors

Invalid entity index.