Garry's Mod Wiki

hltv_rank_camera

Description

Called when the HLTV ranks all cameras

Members

number index
The id of the Camera.
number rank
The rank.
number target
The EntIndex of the Target.

Examples

Example

This is a basic template with the purpose of including all arguments / table variables to make it easily known which values can be accessed.

gameevent.Listen( "hltv_rank_camera" ) hook.Add( "hltv_rank_camera", "hltv_rank_camera_example", function( data ) local index = data.index -- The id of the Camera local rank = data.rank -- The rank local target = data.target -- The Entity:EntIndex() of the Target -- Called when the HLTV ranks all cameras end )