[This is preliminary documentation and is subject to change.]
The Game type exposes the following members.
Properties
Name | Description | |
---|---|---|
AlwaysReceiveKeyEvents |
Gets or sets a value indicating whether this plugin will still receive key events even if input focus is set to an active form.
| |
BuildNumber |
Gets the build number of the game.
| |
Console |
Gets the console.
| |
DisableAutomaticRespawn |
Gets or sets a value indicating whether automatic respawns are disabled, allowing plugins to implement custom respawn systems.
| |
FadeScreenOutOnDeath |
Gets or sets a value indicating whether the game will fade out the screen when the player dies.
| |
FrameCount |
Gets the total number of frames that's been rendered this session.
| |
FrameRate |
Gets the current frame rate.
| |
FrameTime |
Gets the time it currently takes to render a frame, in milliseconds.
| |
GameTime |
Gets the game time in milliseconds. Unlike TickCount this value is scaled based on the game time dilation.
| |
IsAltKeyDownRightNow |
Gets a value indicating whether either alt key is down.
| |
IsControlKeyDownRightNow |
Gets a value indicating whether either control key is down.
| |
IsControllerConnected |
Gets a value indicating whether a gamepad is connected.
| |
IsFullMapRevealForced |
Sets a value indicating whether the entire map is currently forced to be revealed.
| |
IsLoading |
Gets a value indicating whether the game is currently displaying the loading screen.
| |
IsMissionActive |
Gets or sets a value indicating whether a mission is currently active.
| |
IsPaused | Gets or sets whether the game is paused. The game cannot be paused in certain cases, eg. when the console is open. | |
IsScreenFadedIn |
Gets a value indicating whether the screen is currently faded in.
| |
IsScreenFadedOut |
Gets a value indicating whether the screen is currently faded out.
| |
IsScreenFadingIn |
Gets a value indicating whether the screen is currently fading in.
| |
IsScreenFadingOut |
Gets a value indicating whether the screen is currently fading out.
| |
IsShiftKeyDownRightNow |
Gets a value indicating whether either shift key is down.
| |
LocalPlayer |
Gets the local Player instance.
| |
MaxWantedLevel |
Gets or sets the maximum wanted level.
| |
ProductVersion |
Gets the product version of the game.
| |
Resolution | Gets the current game resolution.
This is the resolution of the game window, not the actual screen resolution. | |
ShowPoliceBlipsOnRadar |
Sets a value indicating whether blips representing police units should be shown on the radar when the local player is wanted.
| |
TickCount | ||
TimeScale |
Gets or sets the time scale multiplier.
|
See Also