SetEntityGravity Function

Sets an entity's gravity.

void SetEntityGravity(int entity, float amount)

Parameters

int entity

Entity index.

float amount

Gravity to set (default = 1.0, half = 0.5, double = 2.0).

Errors

Invalid entity index, or lack of mod compliance.