GetEntityGravity Function

Gets an entity's gravity.

float GetEntityGravity(int entity)

Parameters

int entity

Entity index.

Return Value

Entity's m_flGravity value.

Errors

Invalid entity index, or lack of mod compliance.