native

cs_set_hostage_foll

Syntax

native cs_set_hostage_foll(index, followedindex = 0);

Description

Sets hostage to follow an entity.

Parameters

index Hostage entity index
followedindex New entity to follow

Note

Hostages can theoretically follow any entity in the game, so the
followedindex does not have to be a client index.

Return

This function has no return value.

Error

If the provided entity index is not a hostage, an
error will be thrown.