EntityLumpEntry.Update Method

Updates the key / value pair at the given index.

void Update(int index, const char[] key, const char[] value)

Parameters

int index

Position, starting from 0.

const char[] key

New key name, or NULL_STRING to preserve the existing key name.

const char[] value

New value, or NULL_STRING to preserve the existing value.

Errors

Index is out of bounds or entity lump is read-only.