GameRules_SetPropEnt

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

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

native void GameRules_SetPropEnt(const char[] prop, int other, int element = 0, bool changeState = false)

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.

Return Value

void

Error

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