iengine

Functions

GetScreenSize

Returns:

Type

Description

width and height of game screen

Code:

local vecScreenSize = IEngine.GetScreenSize()

GetPlayerInfo

Parameters:

Name

Type

Description

nEntityIndex

int

index of entity to get player info for

Returns:

Type

Description

entity player info of given index

Code:

local playerInfo = IEngine.GetPlayerInfo(pLocal:GetIndex())

GetPlayerForUserID

Parameters:

Name

Type

Description

nUserID

int

user index to get player index for

Returns:

Type

Description

int

player index of given user index

Code:

GetLocalPlayer

Returns:

Type

Description

int

entity index of local player

Code:

GetViewAngles

Return value:

Type

Description

local player view angles

Code:

SetViewAngles

Parameters:

Name

Type

Description

angViewPoint

view angles to set for local player

Code:

GetMaxClients

Returns:

Type

Description

int

max client count for server

Code:

IsInGame

Returns:

Type

Description

bool

true if we're in-game

Code:

IsConnected

Returns:

Type

Description

bool

true if we're connected (connection message was shown)

Code:

GetLevelName

Returns:

Type

Description

string

current map full name

Code:

GetLevelNameShort

Returns:

Type

Description

string

current map short name

Code:

GetMapGroupName

Returns:

Type

Description

string

current map group name

Code:

GetNetChannelInfo

Returns:

Type

Description

pointer of net channel info

Code:

IsPlayingDemo

Returns:

Type

Description

bool

true if demo is being played back

Code:

IsRecordingDemo

Returns:

Type

Description

bool

true if demo is being recorded

Code:

IsPaused

Returns:

Type

Description

bool

true if game is paused

Code:

IsHLTV

Returns:

Type

Description

bool

true if currently used HLTV (kill replay etc)

Code:

ExecuteClientCmd

Parameters:

Name

Type

Description

szCmdString

string

command to execute (without flag checks)

Code:

Last updated

Was this helpful?