GameRules_GetPropFloat Function

Retrieves a float value from a property of the gamerules entity.

float GameRules_GetPropFloat(const char[] prop, int element)

Parameters

const char[] prop

Property name.

int element

Element # (starting from 0) if property is an array.

Return Value

Value at the given property offset.

Errors

Prop type is not a float, or lack of mod support.