Not Stable Yet!
This article is part of the Witcher 3 scripting community documentation, which is considered to be UNSTABLE until after the release of the Blood and Wine DLC. Edits to these pages may be overwritten without notice!
CCommonGame | |
---|---|
Signature |
import class CCommonGame extends CGame |
Parent |
CGame |
Sub-classes |
CR4Game |
Version |
1.12 |
Path |
/game/commonGame.ws |
ISerializable > IScriptable > CObject > CGame
Public Functions
AddStateChangeRequest
import final function AddStateChangeRequest(entityTag : name, modifier : IEntityStateChangeRequest)
- Parameters:
- entityTag : name
- modifier : IEntityStateChangeRequest
- Location:
- starts @ line 173, ends @ line 173
AreConfigResetInThisSession
import final function AreConfigResetInThisSession() : bool
- Returns:
- Location:
- starts @ line 265, ends @ line 265
AreSavesInitialized
import final function AreSavesInitialized() : bool
- Returns:
- Location:
- starts @ line 194, ends @ line 194
AreSavesLocked
import final function AreSavesLocked() : bool
- Returns:
- Location:
- starts @ line 188, ends @ line 188
AreSubtitlesEnabled
import final function AreSubtitlesEnabled() : bool
- Returns:
- Location:
- starts @ line 9, ends @ line 9
CalculateTimePlayed
import final function CalculateTimePlayed() : GameTime
- Returns:
- Location:
- starts @ line 238, ends @ line 238
CanStartStandaloneDLC
CenterMouse
import final function CenterMouse()
- Location:
- starts @ line 251, ends @ line 251
ChangePlayer
import final function ChangePlayer(playerTemplate : String, optional appearance : name)
- Parameters:
- playerTemplate : String
- optional appearance : name
- Location:
- starts @ line 209, ends @ line 209
CloseMenu
import final function CloseMenu(menuName : name)
- Parameters:
- menuName : name
- Location:
- starts @ line 216, ends @ line 216
ClosePopup
import final function ClosePopup(popupName : name)
- Parameters:
- popupName : name
- Location:
- starts @ line 218, ends @ line 218
ConfigSave
import final function ConfigSave()
- Location:
- starts @ line 191, ends @ line 191
ConvertToStrayActor
CreateEntityAsync
import final function CreateEntityAsync(createEntityHelper : CCreateEntityHelper, entityTemplate : CEntityTemplate, pos : Vector, optional rot : EulerAngles, optional useAppearancesFromIncludes : bool, optional forceBehaviorPose : bool, optional doNotAdjustPlacement : bool, optional persistanceMode : EPersistanceMode, optional tagList : array< name >) : int
- Parameters:
- createEntityHelper : CCreateEntityHelper
- entityTemplate : CEntityTemplate
- pos : Vector
- optional rot : EulerAngles
- optional useAppearancesFromIncludes : bool
- optional forceBehaviorPose : bool
- optional doNotAdjustPlacement : bool
- optional persistanceMode : EPersistanceMode
- optional tagList : array< name >
- Returns:
- Location:
- starts @ line 69, ends @ line 71
CreateNoSaveLock
DeleteSavedGame
import final function DeleteSavedGame(savegame : SSavegameInfo) : void
- Parameters:
- savegame : SSavegameInfo
- Returns:
- void
- Location:
- starts @ line 112, ends @ line 112
EnableSubtitles
import final function EnableSubtitles(enable : bool)
- Parameters:
- enable : bool
- Location:
- starts @ line 8, ends @ line 8
ForceUIAnalog
import final function ForceUIAnalog(value : bool)
- Parameters:
- value : bool
- Location:
- starts @ line 214, ends @ line 214
FreeScreenshotData
import final function FreeScreenshotData()
- Location:
- starts @ line 248, ends @ line 248
GetAPManager
import final function GetAPManager() : CActionPointManager
- Returns:
- Location:
- starts @ line 138, ends @ line 138
GetAchievementsDisabled
import final function GetAchievementsDisabled() : bool
- Returns:
- Location:
- starts @ line 279, ends @ line 279
GetActorByTag
GetActorsByTag
GetAllAvailableLanguages
GetAllNPCs
GetApplicationVersion
import final function GetApplicationVersion() : string
- Returns:
- Location:
- starts @ line 271, ends @ line 271
GetAttackRangeForEntity
import final function GetAttackRangeForEntity(sourceEntity : CEntity, optional attackName : name) : CAIAttackRange
- Parameters:
- Returns:
- Location:
- starts @ line 15, ends @ line 15
GetBehTreeReactionManager
import final function GetBehTreeReactionManager() : CBehTreeReactionManager
- Returns:
- Location:
- starts @ line 20, ends @ line 20
GetCommunitySystem
import final function GetCommunitySystem() : CCommunitySystem
- Returns:
- Location:
- starts @ line 12, ends @ line 12
GetContentRequiredByLastSave
GetCurrentLocale
import final function GetCurrentLocale() : string
- Returns:
- Location:
- starts @ line 132, ends @ line 132
GetDLCManager
import final function GetDLCManager() : CDLCManager
- Returns:
- Location:
- starts @ line 263, ends @ line 263
GetDefinitionsManager
import final function GetDefinitionsManager() : CDefinitionsManagerAccessor
- Returns:
- Location:
- starts @ line 38, ends @ line 38
GetDisplayNameForSavedGame
import final function GetDisplayNameForSavedGame(savegame : SSavegameInfo) : string
- Parameters:
- savegame : SSavegameInfo
- Returns:
- Location:
- starts @ line 97, ends @ line 97
GetGameLanguageId
GetGameLanguageIndex
GetGameLanguageName
GetGameRelease
import final function GetGameRelease() : string
- Returns:
- Location:
- starts @ line 129, ends @ line 129
GetGameResourceList
GetGlobalAttitude
GetHud
GetInGameConfigWrapper
import final function GetInGameConfigWrapper() : CInGameConfigWrapper
- Returns:
- Location:
- starts @ line 220, ends @ line 220
GetIngredientCategoryElements
GetIngredientCathegories
GetItemSetAbilities
GetLoadGameProgress
import final function GetLoadGameProgress() : ELoadGameResult
- Returns:
- ELoadGameResult
- Location:
- starts @ line 93, ends @ line 93
GetNPCByTag
GetNPCsByTag
GetNumSaveSlots
import final function GetNumSaveSlots(type : ESaveGameType) : int
- Parameters:
- type : ESaveGameType
- Returns:
- Location:
- starts @ line 110, ends @ line 110
GetReactionsMgr
import final function GetReactionsMgr() : CReactionsManager
- Returns:
- Location:
- starts @ line 18, ends @ line 18
GetReward
GetSaveInSlot
import final function GetSaveInSlot(type : ESaveGameType, slot : int, out info : SSavegameInfo) : bool
- Parameters:
- type : ESaveGameType
- slot : int
- out info : SSavegameInfo
- Returns:
- Location:
- starts @ line 120, ends @ line 120
GetSetItems
GetStorySceneSystem
import final function GetStorySceneSystem() : CStorySceneSystem
- Returns:
- Location:
- starts @ line 141, ends @ line 141
GetUIHorizontalPlusFrameScale
import final function GetUIHorizontalPlusFrameScale() : float
- Returns:
- Location:
- starts @ line 261, ends @ line 261
GiveReward
HasShownConfigChangedMessage
import final function HasShownConfigChangedMessage() : bool
- Returns:
- Location:
- starts @ line 267, ends @ line 267
HideHardwareCursor
import final function HideHardwareCursor() : void
- Returns:
- void
- Location:
- starts @ line 277, ends @ line 277
ImportSave
import final function ImportSave(savegameInfo : SSavegameInfo) : bool
- Parameters:
- savegameInfo : SSavegameInfo
- Returns:
- Location:
- starts @ line 223, ends @ line 223
InitStandaloneDLCLoading
IsCameraAutoRotX
import final function IsCameraAutoRotX() : bool
- Returns:
- Location:
- starts @ line 204, ends @ line 204
IsCameraAutoRotY
import final function IsCameraAutoRotY() : bool
- Returns:
- Location:
- starts @ line 205, ends @ line 205
IsGameTimePaused
import final function IsGameTimePaused() : bool
- Returns:
- Location:
- starts @ line 169, ends @ line 169
IsIngredientCategorySpecified
IsInvertCameraX
import final function IsInvertCameraX() : bool
- Returns:
- Location:
- starts @ line 197, ends @ line 197
IsInvertCameraY
import final function IsInvertCameraY() : bool
- Returns:
- Location:
- starts @ line 198, ends @ line 198
IsScreenshotDataReady
import final function IsScreenshotDataReady() : bool
- Returns:
- Location:
- starts @ line 245, ends @ line 245
IsSoftwareCursor
import final function IsSoftwareCursor() : bool
- Returns:
- Location:
- starts @ line 273, ends @ line 273
ListSavedGames
import final function ListSavedGames(out fileNames : array<SSavegameInfo>) : bool
- Parameters:
- out fileNames : array<SSavegameInfo>
- Returns:
- Location:
- starts @ line 95, ends @ line 95
ListW2SavedGames
import final function ListW2SavedGames(out savedGames : array<SSavegameInfo>) : bool
- Parameters:
- out savedGames : array<SSavegameInfo>
- Returns:
- Location:
- starts @ line 226, ends @ line 226
LoadGameInit
import final function LoadGameInit(info : SSavegameInfo)
- Parameters:
- info : SSavegameInfo
- Location:
- starts @ line 81, ends @ line 81
LoadLastGameInit
import final function LoadLastGameInit(optional suppressVideo : bool)
- Parameters:
- optional suppressVideo : bool
- Location:
- starts @ line 80, ends @ line 80
MoveMouseTo
QueryExplorationFromObjectSync
import final function QueryExplorationFromObjectSync(entity : CEntity, object : CEntity, optional queryContext : SExplorationQueryContext) : SExplorationQueryToken
- Parameters:
- entity : CEntity
- object : CEntity
- optional queryContext : SExplorationQueryContext
- Returns:
- Location:
- starts @ line 41, ends @ line 41
QueryExplorationSync
import final function QueryExplorationSync(entity : CEntity, optional queryContext : SExplorationQueryContext) : SExplorationQueryToken
- Parameters:
- entity : CEntity
- optional queryContext : SExplorationQueryContext
- Returns:
- Location:
- starts @ line 40, ends @ line 40
ReleaseNoSaveLock
import final function ReleaseNoSaveLock(lock : int)
- Parameters:
- lock : int
- Location:
- starts @ line 182, ends @ line 182
ReleaseNoSaveLockByName
import final function ReleaseNoSaveLockByName(lockName : string)
- Parameters:
- lockName : string
- Location:
- starts @ line 185, ends @ line 185
ReloadLanguage
import final function ReloadLanguage()
- Location:
- starts @ line 166, ends @ line 166
RequestAutoSave
RequestEndGame
import final function RequestEndGame()
- Location:
- starts @ line 125, ends @ line 125
RequestExit
import final function RequestExit()
- Location:
- starts @ line 126, ends @ line 126
RequestMenu
import final function RequestMenu(menuName : name, optional initData : IScriptable)
- Parameters:
- menuName : name
- optional initData : IScriptable
- Location:
- starts @ line 215, ends @ line 215
RequestNewGame
RequestPopup
import final function RequestPopup(popupName : name, optional initData : IScriptable)
- Parameters:
- popupName : name
- optional initData : IScriptable
- Location:
- starts @ line 217, ends @ line 217
RequestScreenshotData
import final function RequestScreenshotData(save : SSavegameInfo)
- Parameters:
- save : SSavegameInfo
- Location:
- starts @ line 241, ends @ line 241
SaveGame
import final function SaveGame(type : ESaveGameType, slot : int)
- Parameters:
- type : ESaveGameType
- slot : int
- Location:
- starts @ line 107, ends @ line 107
ScheduleWorldChangeToMapPin
ScheduleWorldChangeToPosition
import final function ScheduleWorldChangeToPosition(worldPath : string, position : Vector, rotation : EulerAngles)
- Parameters:
- worldPath : string
- position : Vector
- rotation : EulerAngles
- Location:
- starts @ line 212, ends @ line 212
SetCameraAutoRotX
import final function SetCameraAutoRotX(flag : bool)
- Parameters:
- flag : bool
- Location:
- starts @ line 206, ends @ line 206
SetCameraAutoRotY
import final function SetCameraAutoRotY(flag : bool)
- Parameters:
- flag : bool
- Location:
- starts @ line 207, ends @ line 207
SetGlobalAttitude
SetHasShownConfigChangedMessage
import final function SetHasShownConfigChangedMessage(value : bool) : void
- Parameters:
- value : bool
- Returns:
- void
- Location:
- starts @ line 269, ends @ line 269
SetInvertCameraX
import final function SetInvertCameraX(invert : bool)
- Parameters:
- invert : bool
- Location:
- starts @ line 199, ends @ line 199
SetInvertCameraXOnMouse
import final function SetInvertCameraXOnMouse(invert : bool)
- Parameters:
- invert : bool
- Location:
- starts @ line 201, ends @ line 201
SetInvertCameraY
import final function SetInvertCameraY(invert : bool)
- Parameters:
- invert : bool
- Location:
- starts @ line 200, ends @ line 200
SetInvertCameraYOnMouse
import final function SetInvertCameraYOnMouse(invert : bool)
- Parameters:
- invert : bool
- Location:
- starts @ line 202, ends @ line 202
ShouldShowSaveCompatibilityWarning
import final function ShouldShowSaveCompatibilityWarning() : bool
- Returns:
- Location:
- starts @ line 122, ends @ line 122
ShowHardwareCursor
import final function ShowHardwareCursor() : void
- Returns:
- void
- Location:
- starts @ line 275, ends @ line 275
SwitchGameLanguageByIndex
TestNoCreaturesOnLine
TestNoCreaturesOnLocation
Public Vars
tooltipSettings
public var tooltipSettings : C2dArray
- Location:
- defined @ line 259