GameRules_SetPropFloat Function

Sets a float value for a property of the gamerules entity.

void GameRules_SetPropFloat(const char[] prop, float value, int element, bool changeState)

Parameters

const char[] prop

Property name.

float value

Value to set.

int element

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

bool changeState

This parameter is ignored.

Errors

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