engine

Example:

if (engine.in_game()) then end

Functions:

in_game

Returns if you're in game.

client_cmd

Executes the command received (similar to console).

taking_screenshot

Returns if you're taking a screenshot.

player_for_userid

Returns player id related to the userid acquired from a gameevent.

localplayer

Returns the entity index of the local player.

max_clients

Returns maximum number of clients.

screen_size

Returns size of screen.

get_viewangles

Returns client side view angles.

set_viewangles

Sets client side view angles.

trace_ray

Traces a ray.

trace_ray_hull

Traces a ray hull.

Last updated