SetEntityOwner Function

Sets an entity's owner (CBaseEntity::SetEntityOwner).

void SetEntityOwner(int entity, int owner)

Parameters

int entity

The entity index.

int owner

The owner entity index, can be invalid.

Errors

Invalid entity or lack of mod support.