engine_client
is_connected(): bool
Returns if you are connected to a server or not
is_ingame(): bool
Returns if you are in game or not
is_voice_recording(): bool
Returns if you are talking in voice chat or not
is_paused(): bool
Returns if the game is paused or not
exec( cmd )
Executes a console command. If the command is a cheat command and sv_cheats is set to 0, the command won't be executed
Type
Name
Description
string
cmd
The command you want to execute
get_local_player(): int
Returns the local player's entity index or -1 if not connected
get_view_angles(): ang_t
Returns current view angles
set_view_angles( angles )
Sets view angles
Type
Name
Description
ang_t
angles
The view angles you want to end up at
Last updated
Was this helpful?