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).

ArgumentTypeRequired

cmd

string

+

taking_screenshot

Returns if you're taking a screenshot.

player_for_userid

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

ArgumentTypeRequired

userid

number

+

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.

ArgumentTypeRequired

viewangles

+

trace_ray

Traces a ray.

ArgumentTypeRequired

start

+

end

+

skip

entity

+

mask

+

trace_ray_hull

Traces a ray hull.

ArgumentTypeRequired

start

+

end

+

mins

+

maxs

+

skip

entity

+

mask

+

Last updated