πŸ› οΈengine

Functions:

get_screen_size

engine.get_screen_size(): vector

Returns the screen size.

get_level_name

engine.get_level_name(): string

get_level_name_short

engine.get_level_name_short(): string

get_map_group_name

engine.get_map_group_name(): string

Returns the map group.

get_local_player_index

engine.get_local_player_index(): number

Returns the index of the local player.

get_player_for_user_id

engine.get_player_for_user_id(userid: number): entity

Name
Type
Description

userid

number

User id

Returns a pointer to the specified player.

get_view_angles

engine.get_view_angles(): vector

Returns the player view angles.

is_connected

engine.is_connected(): boolean

Returns true, if the player is connected.

is_hltv

engine.is_hltv(): boolean

Returns true, if the is hltv.

is_paused

engine.is_paused(): boolean

Returns true, if the game is paused.

is_in_game

engine.is_in_game(): boolean

Returns true, if the player is currently connected to a game server.

is_playing_demo

engine.is_playing_demo(): boolean

Returns true, if the demo is being played.

is_recording_demo

engine.is_recording_demo(): boolean

Returns true, if the demo is being recorded.

is_taking_screenshot

engine.is_taking_screenshot(): boolean

Returns true, if a screenshot was taken.

is_voice_recording

engine.is_voice_recording(): boolean

Returns true, if you are speaking in voice chat.

set_view_angles

engine.set_view_angles(angles: vector)

Name
Type
Description

angles

vector

Player angles

Sets view angles to the player.

set_clantag

engine.set_clantag(tag: string)

Name
Type
Description

tag

string

Clan tag

Sets your in-game clan tag.

get_gamename

engine.get_gamename(): string

Returns the game name.

get_winpath

engine.get_winpath(type: string)

Name
Type
Description

type

string

Types: appdata

Returns a specific path.

get_gamepath

engine.get_gamepath(): string

Returns the path to the game client folder.

get_roundstart_time

engine.get_roundstart_time(): number

Returns the time before the start of the round.

get_round_time

engine.get_round_time(): number

Returns the time of the round.

Last updated