GameRules_SetPropEnt Function

Sets an entity index for a property of the gamerules entity.

void GameRules_SetPropEnt(const char[] prop, int other, int element, bool changeState)

Parameters

const char[] prop

Property name.

int other

Entity index to set, or -1 to unset.

int element

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

bool changeState

This parameter is ignored.

Errors

Prop type is not an entity, invalid entity, or lack of mod support.