GameRules_GetPropFloat Function

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

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


const char[] prop

Property name.

int element

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

Return Value

Value at the given property offset.


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