Garry's Mod Wiki

freezecam_started

Description

Called when the freeze cam starts spectating something.
Example cause:

local ply = Entity( 1 ) ply:Spectate( OBS_MODE_FREEZECAM ) ply:SpectateEntity( ply )

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( "freezecam_started" ) hook.Add( "freezecam_started", "freezecam_started_example", function( data ) // Called when the freeze cam starts spectating something. end )