HPL3/Amnesia: Rebirth/Scripting/Scripting Api/cLux
![]() |
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Summary
- 2 Function Detail
- 2.1 cLux_AddAIDebugMessage
- 2.2 cLux_AddAIDebugMessage
- 2.3 cLux_AddAreaType
- 2.4 cLux_AddCritterType
- 2.5 cLux_AddDebugMessage
- 2.6 cLux_AddDebugMessage
- 2.7 cLux_AddEntityToInteractionWhiteList
- 2.8 cLux_AddIgnoredLight
- 2.9 cLux_AddLiquidAreaType
- 2.10 cLux_AddModule
- 2.11 cLux_AddPropType
- 2.12 cLux_AddTodoMessage
- 2.13 cLux_AddTodoMessage
- 2.14 cLux_ApplyUserConfig
- 2.15 cLux_CacheAddMaterial
- 2.16 cLux_CacheAddMesh
- 2.17 cLux_CacheRemoveMaterial
- 2.18 cLux_CacheRemoveMesh
- 2.19 cLux_CanContinue
- 2.20 cLux_ChangeMap
- 2.21 cLux_ChangeMapDebug
- 2.22 cLux_CheckIsInDirectLight
- 2.23 cLux_CheckLineOfSight
- 2.24 cLux_CleanupData
- 2.25 cLux_ClearAllMapSaveData
- 2.26 cLux_ClearIgnoredLights
- 2.27 cLux_ClearMapSaveData
- 2.28 cLux_ClearPlayedVoiceLines
- 2.29 cLux_Continue
- 2.30 cLux_CreateEntityComponent_AttackDamage
- 2.31 cLux_CreateEntityComponent_BackboneTail
- 2.32 cLux_CreateEntityComponent_BarkMachine
- 2.33 cLux_CreateEntityComponent_CharMover
- 2.34 cLux_CreateEntityComponent_EdgeGlow
- 2.35 cLux_CreateEntityComponent_FootPlacement
- 2.36 cLux_CreateEntityComponent_ForceEmitter
- 2.37 cLux_CreateEntityComponent_HandPlacement
- 2.38 cLux_CreateEntityComponent_HeadTracker
- 2.39 cLux_CreateEntityComponent_LightSensor
- 2.40 cLux_CreateEntityComponent_Pathfinder
- 2.41 cLux_CreateEntityComponent_ProximitySensor
- 2.42 cLux_CreateEntityComponent_SoundListener
- 2.43 cLux_CreateEntityComponent_StateMachine
- 2.44 cLux_CreateEntityComponent_VerletAnimation
- 2.45 cLux_CreateHTMLImage
- 2.46 cLux_CreateHTMLParagraph
- 2.47 cLux_CreateHTMLTag
- 2.48 cLux_CreateScriptImGui
- 2.49 cLux_CreateUserComponent
- 2.50 cLux_DebugModeOn
- 2.51 cLux_DecUnderwaterEffectUserCount
- 2.52 cLux_DeloadMap
- 2.53 cLux_DisableSaving
- 2.54 cLux_DrawDebugText
- 2.55 cLux_DrawHint
- 2.56 cLux_DrawScreenText
- 2.57 cLux_DrawSetToScreen
- 2.58 cLux_DropPageFocus
- 2.59 cLux_EnableSaving
- 2.60 cLux_Exit
- 2.61 cLux_GetAchievementHandler
- 2.62 cLux_GetAverageBrightness
- 2.63 cLux_GetBodyEntity
- 2.64 cLux_GetClosestBody
- 2.65 cLux_GetClosestCharCollideBody
- 2.66 cLux_GetClosestCharCollider
- 2.67 cLux_GetClosestEntity
- 2.68 cLux_GetConsoleMaps
- 2.69 cLux_GetCurrentImGui
- 2.70 cLux_GetCurrentLanguage
- 2.71 cLux_GetCurrentMap
- 2.72 cLux_GetCurrentUserProfilePath
- 2.73 cLux_GetDebugGameSpeed
- 2.74 cLux_GetDefaultFont
- 2.75 cLux_GetDefaultGameLanguage
- 2.76 cLux_GetDialogHandler
- 2.77 cLux_GetEffectHandler
- 2.78 cLux_GetEventDatabaseHandler
- 2.79 cLux_GetGameConfig
- 2.80 cLux_GetGameHudImGui
- 2.81 cLux_GetGameHudSet
- 2.82 cLux_GetGameLanguageFolder
- 2.83 cLux_GetGamePaused
- 2.84 cLux_GetGameTime
- 2.85 cLux_GetGodModeActivated
- 2.86 cLux_GetGuiHandler
- 2.87 cLux_GetHelpGuiSet
- 2.88 cLux_GetHideCrosshair
- 2.89 cLux_GetHideHints
- 2.90 cLux_GetHidePopupIcons
- 2.91 cLux_GetHidingEffectsActive
- 2.92 cLux_GetHudDisplayScale
- 2.93 cLux_GetHudVirtualCenterScreenSize
- 2.94 cLux_GetHudVirtualCenterScreenStartPos
- 2.95 cLux_GetHudVirtualCenterSize
- 2.96 cLux_GetHudVirtualOffset
- 2.97 cLux_GetHudVirtualSize
- 2.98 cLux_GetHudVirtualStartPos
- 2.99 cLux_GetInputFocusImGui
- 2.100 cLux_GetInputHandler
- 2.101 cLux_GetInteractionWhiteListActive
- 2.102 cLux_GetKeyConfig
- 2.103 cLux_GetLightLeveAtPosWithoutIgnoredLights
- 2.104 cLux_GetLightLevelAtPos
- 2.105 cLux_GetLogAverageBrightness
- 2.106 cLux_GetLookAtCallbacksActive
- 2.107 cLux_GetMainMenuFile
- 2.108 cLux_GetModHandler
- 2.109 cLux_GetMusicHandler
- 2.110 cLux_GetPlayer
- 2.111 cLux_GetPreloadMap
- 2.112 cLux_GetPrevInputFocusImGui
- 2.113 cLux_GetProfilerActive
- 2.114 cLux_GetSaveConfigAtExit
- 2.115 cLux_GetSaveHandler
- 2.116 cLux_GetSavingEnabled
- 2.117 cLux_GetSingleLightLevelAtPos
- 2.118 cLux_GetSoundscapeHandler
- 2.119 cLux_GetStartPositions
- 2.120 cLux_GetStringDuration
- 2.121 cLux_GetStringWFromDate
- 2.122 cLux_GetTextCatAndEntryFromString
- 2.123 cLux_GetUnderwaterEffectsActive
- 2.124 cLux_GetUserComponent
- 2.125 cLux_GetUserComponentScriptInterface
- 2.126 cLux_GetUserConfig
- 2.127 cLux_GetUserModuleFromID
- 2.128 cLux_GetUserModuleFromName
- 2.129 cLux_GetViewport
- 2.130 cLux_GetVoiceHandler
- 2.131 cLux_HasConfigLoadError
- 2.132 cLux_HasTranslation
- 2.133 cLux_HasUnderwaterEffectUsers
- 2.134 cLux_HideDebugOutputOn
- 2.135 cLux_ID_Agent
- 2.136 cLux_ID_Area
- 2.137 cLux_ID_Beam
- 2.138 cLux_ID_Billboard
- 2.139 cLux_ID_BillboardGroup
- 2.140 cLux_ID_Body
- 2.141 cLux_ID_CharacterBody
- 2.142 cLux_ID_ClothEntity
- 2.143 cLux_ID_Critter
- 2.144 cLux_ID_Entity
- 2.145 cLux_ID_Entity3D
- 2.146 cLux_ID_ExposureArea
- 2.147 cLux_ID_FogArea
- 2.148 cLux_ID_ForceField
- 2.149 cLux_ID_GuiSetEntity
- 2.150 cLux_ID_Joint
- 2.151 cLux_ID_LensFlare
- 2.152 cLux_ID_Light
- 2.153 cLux_ID_LightMaskBox
- 2.154 cLux_ID_LiquidArea
- 2.155 cLux_ID_MeshEntity
- 2.156 cLux_ID_ParticleSystem
- 2.157 cLux_ID_Prop
- 2.158 cLux_ID_PushableFogArea
- 2.159 cLux_ID_ReverbArea
- 2.160 cLux_ID_RopeEntity
- 2.161 cLux_ID_SoundEntity
- 2.162 cLux_ID_SubMeshEntity
- 2.163 cLux_IncUnderwaterEffectUserCount
- 2.164 cLux_IsChangingMap
- 2.165 cLux_IsLoadingScreenVisible
- 2.166 cLux_IsPlayGoReady
- 2.167 cLux_IsReadyToChangeMap
- 2.168 cLux_IsStreamingMap
- 2.169 cLux_LoadScreenSetBarPosAndSize
- 2.170 cLux_LoadScreenSetForceBackground
- 2.171 cLux_LoadScreenShowLoadingIcon
- 2.172 cLux_MapChangeIsTransfer
- 2.173 cLux_MapIsLoaded
- 2.174 cLux_OutputTextToFile
- 2.175 cLux_ParseString
- 2.176 cLux_ParseStringIntoScreenText
- 2.177 cLux_PlayGuiSoundData
- 2.178 cLux_PlayGuiSoundDataEx
- 2.179 cLux_PreloadEntity
- 2.180 cLux_PreloadGuiGfx
- 2.181 cLux_PreloadMap
- 2.182 cLux_PreloadMaterial
- 2.183 cLux_PreloadParticleSystem
- 2.184 cLux_PreloadSound
- 2.185 cLux_PreloadWebpage
- 2.186 cLux_ProfileEnd
- 2.187 cLux_ProfileStart
- 2.188 cLux_RayDamage
- 2.189 cLux_RegisterCollisionRadius
- 2.190 cLux_RegisterEventListenerUserModule_AgentSetActive
- 2.191 cLux_ReloadGame
- 2.192 cLux_RenderBackgroundScreen
- 2.193 cLux_ResetShudderEffects
- 2.194 cLux_RunTestButton
- 2.195 cLux_SaveScreenshotToFile
- 2.196 cLux_ScriptDebugOn
- 2.197 cLux_SendInputToGui
- 2.198 cLux_SetAreaOffline
- 2.199 cLux_SetComputeAverageFrameColor
- 2.200 cLux_SetDebugGameSpeed
- 2.201 cLux_SetDebugInfoWindowText
- 2.202 cLux_SetGamePaused
- 2.203 cLux_SetGodModeActivated
- 2.204 cLux_SetHideDebugOutputOn
- 2.205 cLux_SetHideModeEffectsActive
- 2.206 cLux_SetImGuiInputFocus
- 2.207 cLux_SetInteractionWhiteListActive
- 2.208 cLux_SetLookAtCallbacksActive
- 2.209 cLux_SetMapPreloadPriority
- 2.210 cLux_SetProfilerActive
- 2.211 cLux_SetProfilerFilter
- 2.212 cLux_SetProfilerPauseInterval
- 2.213 cLux_SetScriptDebugOn
- 2.214 cLux_SetTerrainSettings
- 2.215 cLux_SetUnderwaterEffectsActive
- 2.216 cLux_SetupDefaultGlobalReverb
- 2.217 cLux_ShapeDamage
- 2.218 cLux_ShowEntityInfoOn
- 2.219 cLux_StartMap
- 2.220 cLux_StartNewGame
- 2.221 cLux_TeleportToStartPos
- 2.222 cLux_TestModeOn
- 2.223 cLux_ToAgent
- 2.224 cLux_ToArea
- 2.225 cLux_ToCritter
- 2.226 cLux_ToLiquidArea
- 2.227 cLux_ToProp
- 2.228 cLux_ToPushableFogArea
- 2.229 cLux_Translate
- 2.230 cLux_TranslatePlatformSpecific
- 2.231 cLux_TruncateTextFile
Summary
Function Detail
cLux_AddAIDebugMessage
void cLux_AddAIDebugMessage(const tString &in asText,
bool abAddToDebugLog,
bool abCheckForDuplicates)
Parameters
- asText (tString) —
- abAddToDebugLog (bool) —
- abCheckForDuplicates (bool) —
Returns:
- void
cLux_AddAIDebugMessage
cLux_AddAreaType
cLux_AddCritterType
cLux_AddDebugMessage
void cLux_AddDebugMessage(const tString &in asText,
bool abCheckForDuplicates)
Parameters
- asText (tString) —
- abCheckForDuplicates (bool) —
Returns:
- void
cLux_AddDebugMessage
cLux_AddEntityToInteractionWhiteList
void cLux_AddEntityToInteractionWhiteList(iLuxEntity@ apEntity)
Parameters
- apEntity (iLuxEntity@) —
Returns:
- void
cLux_AddIgnoredLight
cLux_AddLiquidAreaType
cLux_AddModule
void cLux_AddModule(const tString &in asName,
const tString &in asScriptFile,
const tString &in asScriptClass,
int alId,
bool abIsGlobal,
const tString &in sContainer,
bool abUseInputCallbacks)
Parameters
- asName (tString) —
- asScriptFile (tString) —
- asScriptClass (tString) —
- alId (int) —
- abIsGlobal (bool) —
- sContainer (tString) —
- abUseInputCallbacks (bool) —
Returns:
- void
cLux_AddPropType
cLux_AddTodoMessage
void cLux_AddTodoMessage(const tString &in asText,
bool abCheckForDuplicates)
Parameters
- asText (tString) —
- abCheckForDuplicates (bool) —
Returns:
- void
cLux_AddTodoMessage
cLux_ApplyUserConfig
bool cLux_ApplyUserConfig()
Returns:
- bool—
cLux_CacheAddMaterial
cLux_CacheAddMesh
cLux_CacheRemoveMaterial
cLux_CacheRemoveMesh
cLux_CanContinue
bool cLux_CanContinue()
Returns:
- bool—
cLux_ChangeMap
void cLux_ChangeMap(const tString &in asMapName,
const tString &in asStartPos,
const tString &in asTransferArea,
const tString &in asStartSound,
const tString &in asEndSound,
bool abShowLoadingScreen,
float afFadeInTime = -1.0f)
Parameters
- asMapName (tString) —
- asStartPos (tString) —
- asTransferArea (tString) —
- asStartSound (tString) —
- asEndSound (tString) —
- abShowLoadingScreen (bool) —
- afFadeInTime (float) —
Returns:
- void
cLux_ChangeMapDebug
cLux_CheckIsInDirectLight
bool cLux_CheckIsInDirectLight(const cVector3f &in avPos)
Parameters
- avPos (cVector3f) —
Returns:
- bool—
cLux_CheckLineOfSight
bool cLux_CheckLineOfSight(const cVector3f &in avStart,
const cVector3f &in avEnd,
bool abCheckOnlyShadowCasters,
bool abCheckOnlyStatic,
iLuxEntity@ apSkipEntity = null)
Parameters
- avStart (cVector3f) —
- avEnd (cVector3f) —
- abCheckOnlyShadowCasters (bool) —
- abCheckOnlyStatic (bool) —
- apSkipEntity (iLuxEntity@) —
Returns:
- bool—
cLux_CleanupData
void cLux_CleanupData()
Returns:
- void
cLux_ClearAllMapSaveData
void cLux_ClearAllMapSaveData()
Returns:
- void
cLux_ClearIgnoredLights
void cLux_ClearIgnoredLights()
Returns:
- void
cLux_ClearMapSaveData
void cLux_ClearMapSaveData(const tString &in asMapName)
Parameters
- asMapName (tString) —
Returns:
- void
cLux_ClearPlayedVoiceLines
void cLux_ClearPlayedVoiceLines()
Returns:
- void
cLux_Continue
void cLux_Continue()
Returns:
- void
cLux_CreateEntityComponent_AttackDamage
cLuxAttackDamage@ cLux_CreateEntityComponent_AttackDamage(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxAttackDamage@—
cLux_CreateEntityComponent_BackboneTail
cLuxBackboneTail@ cLux_CreateEntityComponent_BackboneTail(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxBackboneTail@—
cLux_CreateEntityComponent_BarkMachine
cLuxBarkMachine@ cLux_CreateEntityComponent_BarkMachine(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxBarkMachine@—
cLux_CreateEntityComponent_CharMover
cLuxCharMover@ cLux_CreateEntityComponent_CharMover(iLuxEntity @apEntity,
iCharacterBody @apCharBody)
Parameters
- @apEntity (iLuxEntity) —
- @apCharBody (iCharacterBody) —
Returns:
- cLuxCharMover@—
cLux_CreateEntityComponent_EdgeGlow
cLuxEdgeGlow@ cLux_CreateEntityComponent_EdgeGlow(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxEdgeGlow@—
cLux_CreateEntityComponent_FootPlacement
cLuxFootPlacement@ cLux_CreateEntityComponent_FootPlacement(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxFootPlacement@—
cLux_CreateEntityComponent_ForceEmitter
cLuxForceEmitter@ cLux_CreateEntityComponent_ForceEmitter(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxForceEmitter@—
cLux_CreateEntityComponent_HandPlacement
cLuxHandPlacement@ cLux_CreateEntityComponent_HandPlacement(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxHandPlacement@—
cLux_CreateEntityComponent_HeadTracker
cLuxHeadTracker@ cLux_CreateEntityComponent_HeadTracker(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxHeadTracker@—
cLux_CreateEntityComponent_LightSensor
cLuxLightSensor@ cLux_CreateEntityComponent_LightSensor(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxLightSensor@—
cLux_CreateEntityComponent_Pathfinder
cLuxPathfinder@ cLux_CreateEntityComponent_Pathfinder(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxPathfinder@—
cLux_CreateEntityComponent_ProximitySensor
cLuxProximitySensor@ cLux_CreateEntityComponent_ProximitySensor(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxProximitySensor@—
cLux_CreateEntityComponent_SoundListener
cLuxSoundListener@ cLux_CreateEntityComponent_SoundListener(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxSoundListener@—
cLux_CreateEntityComponent_StateMachine
cLuxStateMachine@ cLux_CreateEntityComponent_StateMachine(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxStateMachine@—
cLux_CreateEntityComponent_VerletAnimation
cLuxVerletAnimation@ cLux_CreateEntityComponent_VerletAnimation(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxVerletAnimation@—
cLux_CreateHTMLImage
cLux_CreateHTMLParagraph
tString cLux_CreateHTMLParagraph(const tString &in asContent)
Parameters
- asContent (tString) —
Returns:
- tString—
cLux_CreateHTMLTag
cLux_CreateScriptImGui
cLuxScriptImGui@ cLux_CreateScriptImGui(const tString &in asName,
bool abRegisterForDrawing,
bool abSkipResetOnRegistration = true)
Parameters
- asName (tString) —
- abRegisterForDrawing (bool) —
- abSkipResetOnRegistration (bool) —
Returns:
- cLuxScriptImGui@—
cLux_CreateUserComponent
iScrUserComponent_Interface@ cLux_CreateUserComponent(iLuxEntity@ apEntity,
const tString &in asComponentName,
const tString &in asScriptFile,
const tString &in asScriptClass,
int alID)
Parameters
- apEntity (iLuxEntity@) —
- asComponentName (tString) —
- asScriptFile (tString) —
- asScriptClass (tString) —
- alID (int) —
Returns:
- iScrUserComponent_Interface@—
cLux_DebugModeOn
bool cLux_DebugModeOn()
Returns:
- bool—
cLux_DecUnderwaterEffectUserCount
void cLux_DecUnderwaterEffectUserCount()
Returns:
- void
cLux_DeloadMap
void cLux_DeloadMap(const tString &in asTransferArea)
Parameters
- asTransferArea (tString) —
Returns:
- void
cLux_DisableSaving
void cLux_DisableSaving(float afDuration)
Parameters
- afDuration (float) —
Returns:
- void
cLux_DrawDebugText
cLux_DrawHint
void cLux_DrawHint(cImGui @apImGui,
float afTimeStep,
const cImGuiLabelData &in aLabel,
const cVector3f &in avPosition,
float afLineWidth,
float afLineSpacing,
const tWString &in avTextLines,
const cLuxScreenTextIcon@ &in avIcons,
const array &in avIconsPerLine)
Parameters
- @apImGui (cImGui) —
- afTimeStep (float) —
- aLabel (cImGuiLabelData) —
- avPosition (cVector3f) —
- afLineWidth (float) —
- afLineSpacing (float) —
- avTextLines (tWString) —
- avIcons (cLuxScreenTextIcon@) —
- avIconsPerLine (array) —
Returns:
- void
cLux_DrawScreenText
void cLux_DrawScreenText(cImGui @apImGui,
float afTimeStep,
const cImGuiLabelData &in aLabel,
const cVector3f &in avPosition,
float afLineWidth,
float afLineSpacing,
const tWString &in avTextLines,
const cLuxScreenTextIcon@ &in avIcons,
const array &in avIconsPerLine)
Parameters
- @apImGui (cImGui) —
- afTimeStep (float) —
- aLabel (cImGuiLabelData) —
- avPosition (cVector3f) —
- afLineWidth (float) —
- afLineSpacing (float) —
- avTextLines (tWString) —
- avIcons (cLuxScreenTextIcon@) —
- avIconsPerLine (array) —
Returns:
- void
cLux_DrawSetToScreen
cLux_DropPageFocus
cLux_EnableSaving
void cLux_EnableSaving()
Returns:
- void
cLux_Exit
void cLux_Exit()
Returns:
- void
cLux_GetAchievementHandler
iLuxAchievementHandler@ cLux_GetAchievementHandler()
Returns:
- iLuxAchievementHandler@—
cLux_GetAverageBrightness
float cLux_GetAverageBrightness()
Returns:
- float—
cLux_GetBodyEntity
iLuxEntity@ cLux_GetBodyEntity(iPhysicsBody @apBody)
Parameters
- @apBody (iPhysicsBody) —
Returns:
- iLuxEntity@—
cLux_GetClosestBody
iPhysicsBody@ cLux_GetClosestBody(const cVector3f &in avStart,
const cVector3f &in avDir,
float afRayLength,
float &out afDistance,
cVector3f &out avSurfaceNormal)
Parameters
- avStart (cVector3f) —
- avDir (cVector3f) —
- afRayLength (float) —
- afDistance (float) —
- avSurfaceNormal (cVector3f) —
Returns:
- iPhysicsBody@—
cLux_GetClosestCharCollideBody
iPhysicsBody@ cLux_GetClosestCharCollideBody(const cVector3f &in avStart,
const cVector3f &in avDir,
float afRayLength,
float &out afDistance,
cVector3f &out avSurfaceNormal)
Parameters
- avStart (cVector3f) —
- avDir (cVector3f) —
- afRayLength (float) —
- afDistance (float) —
- avSurfaceNormal (cVector3f) —
Returns:
- iPhysicsBody@—
cLux_GetClosestCharCollider
bool cLux_GetClosestCharCollider(const cVector3f &in avStart,
const cVector3f &in avDir,
float afRayLength,
bool abCheckDynamic,
cLuxClosestCharCollider @apOutput)
Parameters
- avStart (cVector3f) —
- avDir (cVector3f) —
- afRayLength (float) —
- abCheckDynamic (bool) —
- @apOutput (cLuxClosestCharCollider) —
Returns:
- bool—
cLux_GetClosestEntity
bool cLux_GetClosestEntity(const cVector3f &in avStart,
const cVector3f &in avDir,
float afRayLength,
int alIteractType,
bool abCheckLineOfSight,
cLuxClosestEntityData @apOutput)
Parameters
- avStart (cVector3f) —
- avDir (cVector3f) —
- afRayLength (float) —
- alIteractType (int) —
- abCheckLineOfSight (bool) —
- @apOutput (cLuxClosestEntityData) —
Returns:
- bool—
cLux_GetConsoleMaps
cLux_GetCurrentImGui
cImGui@ cLux_GetCurrentImGui()
Returns:
- cImGui@—
cLux_GetCurrentLanguage
const tString& cLux_GetCurrentLanguage()
Returns:
- const tString&—
cLux_GetCurrentMap
cLuxMap@ cLux_GetCurrentMap()
Returns:
- cLuxMap@—
cLux_GetCurrentUserProfilePath
tWString cLux_GetCurrentUserProfilePath()
Returns:
- tWString—
cLux_GetDebugGameSpeed
int cLux_GetDebugGameSpeed()
Returns:
- int—
cLux_GetDefaultFont
iFontData@ cLux_GetDefaultFont()
Returns:
- iFontData@—
cLux_GetDefaultGameLanguage
tString cLux_GetDefaultGameLanguage()
Returns:
- tString—
cLux_GetDialogHandler
cLuxDialogHandler@ cLux_GetDialogHandler()
Returns:
- cLuxDialogHandler@—
cLux_GetEffectHandler
cLuxEffectHandler@ cLux_GetEffectHandler()
Returns:
- cLuxEffectHandler@—
cLux_GetEventDatabaseHandler
cLuxEventDatabaseHandler@ cLux_GetEventDatabaseHandler()
Returns:
- cLuxEventDatabaseHandler@—
cLux_GetGameConfig
cConfigFile@ cLux_GetGameConfig()
Returns:
- cConfigFile@—
cLux_GetGameHudImGui
cImGui@ cLux_GetGameHudImGui()
Returns:
- cImGui@—
cLux_GetGameHudSet
cGuiSet@ cLux_GetGameHudSet()
Returns:
- cGuiSet@—
cLux_GetGameLanguageFolder
tString cLux_GetGameLanguageFolder()
Returns:
- tString—
cLux_GetGamePaused
bool cLux_GetGamePaused()
Returns:
- bool—
cLux_GetGameTime
double cLux_GetGameTime()
Returns:
- double—
cLux_GetGodModeActivated
bool cLux_GetGodModeActivated()
Returns:
- bool—
cLux_GetGuiHandler
cLuxGuiHandler@ cLux_GetGuiHandler()
Returns:
- cLuxGuiHandler@—
cLux_GetHelpGuiSet
cGuiSet@ cLux_GetHelpGuiSet()
Returns:
- cGuiSet@—
cLux_GetHideCrosshair
bool cLux_GetHideCrosshair()
Returns:
- bool—
cLux_GetHideHints
bool cLux_GetHideHints()
Returns:
- bool—
cLux_GetHidePopupIcons
bool cLux_GetHidePopupIcons()
Returns:
- bool—
cLux_GetHidingEffectsActive
bool cLux_GetHidingEffectsActive()
Returns:
- bool—
cLux_GetHudDisplayScale
float cLux_GetHudDisplayScale()
Returns:
- float—
cLux_GetHudVirtualCenterScreenSize
const cVector2f& cLux_GetHudVirtualCenterScreenSize()
Returns:
- const cVector2f&—
cLux_GetHudVirtualCenterScreenStartPos
const cVector3f& cLux_GetHudVirtualCenterScreenStartPos()
Returns:
- const cVector3f&—
cLux_GetHudVirtualCenterSize
const cVector2f& cLux_GetHudVirtualCenterSize()
Returns:
- const cVector2f&—
cLux_GetHudVirtualOffset
const cVector2f& cLux_GetHudVirtualOffset()
Returns:
- const cVector2f&—
cLux_GetHudVirtualSize
const cVector2f& cLux_GetHudVirtualSize()
Returns:
- const cVector2f&—
cLux_GetHudVirtualStartPos
const cVector3f& cLux_GetHudVirtualStartPos()
Returns:
- const cVector3f&—
cLux_GetInputFocusImGui
cImGui@ cLux_GetInputFocusImGui()
Returns:
- cImGui@—
cLux_GetInputHandler
cLuxInputHandler@ cLux_GetInputHandler()
Returns:
- cLuxInputHandler@—
cLux_GetInteractionWhiteListActive
bool cLux_GetInteractionWhiteListActive()
Returns:
- bool—
cLux_GetKeyConfig
cConfigFile@ cLux_GetKeyConfig()
Returns:
- cConfigFile@—
cLux_GetLightLeveAtPosWithoutIgnoredLights
float cLux_GetLightLeveAtPosWithoutIgnoredLights(const cVector3f &in avPos,
float afRadiusAdd)
Parameters
- avPos (cVector3f) —
- afRadiusAdd (float) —
Returns:
- float—
cLux_GetLightLevelAtPos
cLux_GetLogAverageBrightness
float cLux_GetLogAverageBrightness()
Returns:
- float—
cLux_GetLookAtCallbacksActive
bool cLux_GetLookAtCallbacksActive()
Returns:
- bool—
cLux_GetMainMenuFile
const tString& cLux_GetMainMenuFile()
Returns:
- const tString&—
cLux_GetModHandler
cLuxModHandler@ cLux_GetModHandler()
Returns:
- cLuxModHandler@—
cLux_GetMusicHandler
cLuxMusicHandler@ cLux_GetMusicHandler()
Returns:
- cLuxMusicHandler@—
cLux_GetPlayer
cLuxPlayer@ cLux_GetPlayer()
Returns:
- cLuxPlayer@—
cLux_GetPreloadMap
cLuxMap@ cLux_GetPreloadMap()
Returns:
- cLuxMap@—
cLux_GetPrevInputFocusImGui
cImGui@ cLux_GetPrevInputFocusImGui()
Returns:
- cImGui@—
cLux_GetProfilerActive
int cLux_GetProfilerActive()
Returns:
- int—
cLux_GetSaveConfigAtExit
bool cLux_GetSaveConfigAtExit()
Returns:
- bool—
cLux_GetSaveHandler
cLuxSaveHandler@ cLux_GetSaveHandler()
Returns:
- cLuxSaveHandler@—
cLux_GetSavingEnabled
bool cLux_GetSavingEnabled()
Returns:
- bool—
cLux_GetSingleLightLevelAtPos
cLux_GetSoundscapeHandler
cLuxSoundscapeHandler@ cLux_GetSoundscapeHandler()
Returns:
- cLuxSoundscapeHandler@—
cLux_GetStartPositions
void cLux_GetStartPositions(tString &out avStartPos)
Parameters
- avStartPos (tString) —
Returns:
- void
cLux_GetStringDuration
float cLux_GetStringDuration(const tWString &in asStr)
Parameters
- asStr (tWString) —
Returns:
- float—
cLux_GetStringWFromDate
tWString cLux_GetStringWFromDate(const cDate &in aDate)
Parameters
- aDate (cDate) —
Returns:
- tWString—
cLux_GetTextCatAndEntryFromString
cLux_GetUnderwaterEffectsActive
bool cLux_GetUnderwaterEffectsActive()
Returns:
- bool—
cLux_GetUserComponent
iScrUserComponent_Interface@ cLux_GetUserComponent(iLuxEntity@ apEntity,
int alID)
Parameters
- apEntity (iLuxEntity@) —
- alID (int) —
Returns:
- iScrUserComponent_Interface@—
cLux_GetUserComponentScriptInterface
iScrUserComponent_Interface@ cLux_GetUserComponentScriptInterface(iLuxEntityComponent@ apComponent)
Parameters
- apComponent (iLuxEntityComponent@) —
Returns:
- iScrUserComponent_Interface@—
cLux_GetUserConfig
cConfigFile@ cLux_GetUserConfig()
Returns:
- cConfigFile@—
cLux_GetUserModuleFromID
iScrUserModule_Interface@ cLux_GetUserModuleFromID(int alID,
bool abSilent = false)
Parameters
- alID (int) —
- abSilent (bool) —
Returns:
- iScrUserModule_Interface@—
cLux_GetUserModuleFromName
iScrUserModule_Interface@ cLux_GetUserModuleFromName(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- iScrUserModule_Interface@—
cLux_GetViewport
cViewport@ cLux_GetViewport()
Returns:
- cViewport@—
cLux_GetVoiceHandler
cLuxVoiceHandler@ cLux_GetVoiceHandler()
Returns:
- cLuxVoiceHandler@—
cLux_HasConfigLoadError
cLux_HasTranslation
cLux_HasUnderwaterEffectUsers
bool cLux_HasUnderwaterEffectUsers()
Returns:
- bool—
cLux_HideDebugOutputOn
bool cLux_HideDebugOutputOn()
Returns:
- bool—
cLux_ID_Agent
cLux_ID_Area
cLux_ID_Beam
cLux_ID_Billboard
cLux_ID_BillboardGroup
cLux_ID_Body
cLux_ID_CharacterBody
cLux_ID_ClothEntity
cLux_ID_Critter
cLux_ID_Entity
cLux_ID_Entity3D
cLux_ID_ExposureArea
cLux_ID_FogArea
cLux_ID_ForceField
cLux_ID_GuiSetEntity
cLux_ID_Joint
cLux_ID_LensFlare
cLux_ID_Light
cLux_ID_LightMaskBox
cLux_ID_LiquidArea
cLux_ID_MeshEntity
cLux_ID_ParticleSystem
cLux_ID_Prop
cLux_ID_PushableFogArea
cLuxPushableFogArea@ cLux_ID_PushableFogArea(tID aID)
Parameters
- aID (tID) —
Returns:
- cLuxPushableFogArea@—
cLux_ID_ReverbArea
cLuxSoundscapeArea@ cLux_ID_ReverbArea(tID aID)
Parameters
- aID (tID) —
Returns:
- cLuxSoundscapeArea@—
cLux_ID_RopeEntity
cLux_ID_SoundEntity
cLux_ID_SubMeshEntity
cLux_IncUnderwaterEffectUserCount
void cLux_IncUnderwaterEffectUserCount()
Returns:
- void
cLux_IsChangingMap
bool cLux_IsChangingMap()
Returns:
- bool—
cLux_IsLoadingScreenVisible
bool cLux_IsLoadingScreenVisible()
Returns:
- bool—
cLux_IsPlayGoReady
bool cLux_IsPlayGoReady(int64 &out alETA)
Parameters
- alETA (int64) —
Returns:
- bool—
cLux_IsReadyToChangeMap
bool cLux_IsReadyToChangeMap()
Returns:
- bool—
cLux_IsStreamingMap
bool cLux_IsStreamingMap()
Returns:
- bool—
cLux_LoadScreenSetBarPosAndSize
cLux_LoadScreenSetForceBackground
void cLux_LoadScreenSetForceBackground(bool abX)
Parameters
- abX (bool) —
Returns:
- void
cLux_LoadScreenShowLoadingIcon
void cLux_LoadScreenShowLoadingIcon(float afTime)
Parameters
- afTime (float) —
Returns:
- void
cLux_MapChangeIsTransfer
bool cLux_MapChangeIsTransfer()
Returns:
- bool—
cLux_MapIsLoaded
bool cLux_MapIsLoaded()
Returns:
- bool—
cLux_OutputTextToFile
cLux_ParseString
tWString cLux_ParseString(const tWString &in asInput)
Parameters
- asInput (tWString) —
Returns:
- tWString—
cLux_ParseStringIntoScreenText
void cLux_ParseStringIntoScreenText(const tWString &in asInput,
cImGui @apImGui,
const cLuxScreenTextFormatParameters & aFormatParams,
tWString &out aOutLines,
cLuxScreenTextIcon@ &out aIconArray,
array &out aOutIconsPerLine,
float &out afMaxLineHeight,
float &out afDisplayTime,
bool abTriggeredByGamepad)
Parameters
- asInput (tWString) —
- @apImGui (cImGui) —
- aFormatParams (cLuxScreenTextFormatParameters) —
- aOutLines (tWString) —
- aIconArray (cLuxScreenTextIcon@) —
- aOutIconsPerLine (array) —
- afMaxLineHeight (float) —
- afDisplayTime (float) —
- abTriggeredByGamepad (bool) —
Returns:
- void
cLux_PlayGuiSoundData
bool cLux_PlayGuiSoundData(const tString &in asName,
eSoundEntryType aDestType,
float afVolMul,
bool abSkipPreviousRandom)
Parameters
- asName (tString) —
- aDestType (eSoundEntryType) —
- afVolMul (float) —
- abSkipPreviousRandom (bool) —
Returns:
- bool—
cLux_PlayGuiSoundDataEx
bool cLux_PlayGuiSoundDataEx(const tString &in asName,
eSoundEntryType aDestType,
float afVolMul,
bool abSkipPreviousRandom,
cLuxSoundExtraData @apExtraData)
Parameters
- asName (tString) —
- aDestType (eSoundEntryType) —
- afVolMul (float) —
- abSkipPreviousRandom (bool) —
- @apExtraData (cLuxSoundExtraData) —
Returns:
- bool—
cLux_PreloadEntity
cLux_PreloadGuiGfx
cLux_PreloadMap
void cLux_PreloadMap(const tString &in asMapName,
eWorldStreamPriority aPrio = eWorldStreamPriority_Normal)
Parameters
- asMapName (tString) —
- aPrio (eWorldStreamPriority) —
Returns:
- void
cLux_PreloadMaterial
cLux_PreloadParticleSystem
void cLux_PreloadParticleSystem(const tString &in asFile)
Parameters
- asFile (tString) —
Returns:
- void
cLux_PreloadSound
cLux_PreloadWebpage
cLux_ProfileEnd
cLux_ProfileStart
cLux_RayDamage
void cLux_RayDamage(const cVector3f &in avStart,
const cVector3f &in avDirection,
float afRayLength,
float afDamage,
float afForce,
float afMaxImpulse,
int alStrength,
float afHitSpeed,
int aDamageType,
bool abCheckAgents,
bool abCheckPlayer,
bool abCheckProps,
bool abLethalForPlayer,
tID a_idSource,
int alInstanceId)
Parameters
- avStart (cVector3f) —
- avDirection (cVector3f) —
- afRayLength (float) —
- afDamage (float) —
- afForce (float) —
- afMaxImpulse (float) —
- alStrength (int) —
- afHitSpeed (float) —
- aDamageType (int) —
- abCheckAgents (bool) —
- abCheckPlayer (bool) —
- abCheckProps (bool) —
- abLethalForPlayer (bool) —
- a_idSource (tID) —
- alInstanceId (int) —
Returns:
- void
cLux_RegisterCollisionRadius
void cLux_RegisterCollisionRadius(int alX)
Parameters
- alX (int) —
Returns:
- void
cLux_RegisterEventListenerUserModule_AgentSetActive
void cLux_RegisterEventListenerUserModule_AgentSetActive(const tString &in asModuleName)
Parameters
- asModuleName (tString) —
Returns:
- void
cLux_ReloadGame
void cLux_ReloadGame()
Returns:
- void
cLux_RenderBackgroundScreen
void cLux_RenderBackgroundScreen(bool abDrawFullHUD)
Parameters
- abDrawFullHUD (bool) —
Returns:
- void
cLux_ResetShudderEffects
void cLux_ResetShudderEffects(int alX)
Parameters
- alX (int) —
Returns:
- void
cLux_RunTestButton
void cLux_RunTestButton(int alX)
Parameters
- alX (int) —
Returns:
- void
cLux_SaveScreenshotToFile
cLux_ScriptDebugOn
bool cLux_ScriptDebugOn()
Returns:
- bool—
cLux_SendInputToGui
void cLux_SendInputToGui(bool abX)
Parameters
- abX (bool) —
Returns:
- void
cLux_SetAreaOffline
void cLux_SetAreaOffline(int alX)
Parameters
- alX (int) —
Returns:
- void
cLux_SetComputeAverageFrameColor
void cLux_SetComputeAverageFrameColor(bool abActive)
Parameters
- abActive (bool) —
Returns:
- void
cLux_SetDebugGameSpeed
void cLux_SetDebugGameSpeed(int alX)
Parameters
- alX (int) —
Returns:
- void
cLux_SetDebugInfoWindowText
void cLux_SetDebugInfoWindowText(const tString &in asText)
Parameters
- asText (tString) —
Returns:
- void
cLux_SetGamePaused
void cLux_SetGamePaused(bool abX,
bool abPauseMusic,
bool abPauseSounds,
bool abPauseAmbience)
Parameters
- abX (bool) —
- abPauseMusic (bool) —
- abPauseSounds (bool) —
- abPauseAmbience (bool) —
Returns:
- void
cLux_SetGodModeActivated
void cLux_SetGodModeActivated(bool abActive)
Parameters
- abActive (bool) —
Returns:
- void
cLux_SetHideDebugOutputOn
void cLux_SetHideDebugOutputOn(bool abActive)
Parameters
- abActive (bool) —
Returns:
- void
cLux_SetHideModeEffectsActive
void cLux_SetHideModeEffectsActive(bool abX)
Parameters
- abX (bool) —
Returns:
- void
cLux_SetImGuiInputFocus
void cLux_SetImGuiInputFocus(cImGui@ apImGui,
bool abShowMouse)
Parameters
- apImGui (cImGui@) —
- abShowMouse (bool) —
Returns:
- void
cLux_SetInteractionWhiteListActive
void cLux_SetInteractionWhiteListActive(bool abX,
bool abClearList)
Parameters
- abX (bool) —
- abClearList (bool) —
Returns:
- void
cLux_SetLookAtCallbacksActive
void cLux_SetLookAtCallbacksActive(bool abX)
Parameters
- abX (bool) —
Returns:
- void
cLux_SetMapPreloadPriority
void cLux_SetMapPreloadPriority(eWorldStreamPriority aPrio)
Parameters
- aPrio (eWorldStreamPriority) —
Returns:
- void
cLux_SetProfilerActive
void cLux_SetProfilerActive(int alMode)
Parameters
- alMode (int) —
Returns:
- void
cLux_SetProfilerFilter
void cLux_SetProfilerFilter(const tString &in asFilter)
Parameters
- asFilter (tString) —
Returns:
- void
cLux_SetProfilerPauseInterval
void cLux_SetProfilerPauseInterval(float afInterval)
Parameters
- afInterval (float) —
Returns:
- void
cLux_SetScriptDebugOn
void cLux_SetScriptDebugOn(bool abActive)
Parameters
- abActive (bool) —
Returns:
- void
cLux_SetTerrainSettings
void cLux_SetTerrainSettings(int alTextureSize,
int alDiffuseTexelsPerMeter,
int alNormalTexelsPerMeter,
int alSpecTexelsPerMeter)
Parameters
- alTextureSize (int) —
- alDiffuseTexelsPerMeter (int) —
- alNormalTexelsPerMeter (int) —
- alSpecTexelsPerMeter (int) —
Returns:
- void
cLux_SetUnderwaterEffectsActive
void cLux_SetUnderwaterEffectsActive(bool abX,
bool abUseStartAndEndEffects)
Parameters
- abX (bool) —
- abUseStartAndEndEffects (bool) —
Returns:
- void
cLux_SetupDefaultGlobalReverb
void cLux_SetupDefaultGlobalReverb(eSoundReverbPreset aType,
float afFadeTime)
Parameters
- aType (eSoundReverbPreset) —
- afFadeTime (float) —
Returns:
- void
cLux_ShapeDamage
void cLux_ShapeDamage(iCollideShape @apShape,
const cMatrixf &in a_mtxTransform,
const cVector3f &in avOrigin,
float afDamage,
float afForce,
float afMaxImpulse,
int alStrength,
float afHitSpeed,
int aDamageType,
bool abCheckAgents,
bool abCheckPlayer,
bool abCheckProps,
bool abLethalForPlayer,
tID a_idSource,
int alInstanceId)
Parameters
- @apShape (iCollideShape) —
- a_mtxTransform (cMatrixf) —
- avOrigin (cVector3f) —
- afDamage (float) —
- afForce (float) —
- afMaxImpulse (float) —
- alStrength (int) —
- afHitSpeed (float) —
- aDamageType (int) —
- abCheckAgents (bool) —
- abCheckPlayer (bool) —
- abCheckProps (bool) —
- abLethalForPlayer (bool) —
- a_idSource (tID) —
- alInstanceId (int) —
Returns:
- void
cLux_ShowEntityInfoOn
bool cLux_ShowEntityInfoOn()
Returns:
- bool—
cLux_StartMap
cLux_StartNewGame
void cLux_StartNewGame()
Returns:
- void
cLux_TeleportToStartPos
void cLux_TeleportToStartPos(const tString &in asStartPos)
Parameters
- asStartPos (tString) —
Returns:
- void
cLux_TestModeOn
bool cLux_TestModeOn()
Returns:
- bool—
cLux_ToAgent
cLuxAgent@ cLux_ToAgent(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxAgent@—
cLux_ToArea
cLux_ToCritter
cLuxCritter@ cLux_ToCritter(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxCritter@—
cLux_ToLiquidArea
cLuxLiquidArea@ cLux_ToLiquidArea(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxLiquidArea@—
cLux_ToProp
cLux_ToPushableFogArea
cLuxPushableFogArea@ cLux_ToPushableFogArea(iLuxEntity @apEntity)
Parameters
- @apEntity (iLuxEntity) —
Returns:
- cLuxPushableFogArea@—