cs_get_hostage_foll

Syntax

native cs_get_hostage_foll(index);

Usage

index
Hostage entity index

Description

Returns index of the entity that a hostage is following.

Note

Hostages can theoretically follow any entity in the game, so the
returned entity index is not necessarily 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

Entity index if hostage is following something, 0 otherwise

Error

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