GameRules_SetPropFloat

Last Updated2021-06-24
Created At2011-07-06

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

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

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.

Return Value

void

Error

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