cs_set_hostage_foll

Syntax

native cs_set_hostage_foll(index, followedindex = 0);

Usage

index
Hostage entity index
followedindex
New entity to follow

Description

Sets hostage to follow an entity.

Note

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

Note

This native does not work on Condition Zero, which has a different
hostage AI than other versions of Counter-Strike.

Return

This function has no return value.

Error

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