Skip to content

engine

get_screen_width()

Returns the width of your screen

get_screen_height()

Returns the height of your screen

get_level_name()

Returns the full name of the map

get_level_name_short()

Returns the short name of the map

get_local_player_index()

Returns your index

get_map_group_name()

Returns the name of the map group

get_player_for_user_id( int index )

Returns the player by index

get_player_info( int index )

Returns the following table:

Variable Value
name "name"
bot true/false
steam_id "STEAM_0:?:?"

get_view_angles()

Return your view angle

set_view_angles( Vector view_angles )

is_connected()

is_hltv()

is_in_game()

is_paused()

is_playing_demo()

is_recording_demo()

is_taking_screenshot()