EngineClient¶
Functions¶
ExecuteCmd()¶
Parameters¶
| Parameter | Type | Description |
|---|---|---|
| command | string | Command to be executed in the console |
Example
1 2 | |
GetLocalPlayer()¶
Return value¶
| Name | Type | Description |
|---|---|---|
| index | int | The entity index of the local player entity |
Example
1 2 3 4 | |
IsInGame()¶
Return value¶
| Name | Type | Description |
|---|---|---|
| state | bool | Returns true if the local player is in game |
Example
1 2 3 4 5 6 | |
IsConnected()¶
Return value¶
| Name | Type | Description |
|---|---|---|
| state | bool | Returns true if the local player is connected |
Example
1 2 3 4 5 6 | |
GetMaxClients()¶
Return value¶
| Name | Type | Description |
|---|---|---|
| player_count | int | Returns the max player count |
Example
1 2 3 4 5 6 7 8 9 | |
IsTakingScreenshot()¶
Return value¶
| Name | Type | Description |
|---|---|---|
| taking_ss | bool | Returns true if the local client is taking a screenshot |
Example
1 2 3 4 5 6 7 8 | |
GetViewAngles()¶
Return value¶
| Name | Type | Description |
|---|---|---|
| angles | QAngle | Returns a structure containing local player's view angles ( pitch, yaw, roll ) |
Example
1 2 3 4 5 6 7 | |
SetViewAngles(QAngle angles)¶
Parameters¶
| Parameter | Type | Description |
|---|---|---|
| angles | QAngle | Target angle to set local view angles to |
Example
1 2 3 4 5 6 7 | |