Lua API
From CryWiki
Contents |
AI
- AbortAction
- AddCombatClass
- AddFormationPoint
- AddFormationPointFixed
- AddObstructSphere
- AddPatternBranch
- AddPatternNode
- Animation
- AutoDisable
- BeginGoalPipe
- BeginGroup
- BeginTrackPattern
- CanJumpToPoint
- CanMelee
- CanMoveStraightToPoint
- ChangeFormation
- ChangeMovementAbility
- ChangeParameter
- CheckMeleeDamage
- CheckVehicleColision
- ConstrainPointInsideGenericShape
- CreateFormation
- CreateGoalPipe
- CreateTempGenericShapeBox
- DebugReportHitDamage
- DistanceToGenericShape
- EnableCoverFire
- EnableWeaponAccessory
- EndGoalPipe
- EndGroup
- EndTrackPattern
- Error
- EvalHidespot
- EvalPeek
- Event
- ExecuteAction
- FindObjectOfType
- FindStandbySpotInShape
- FindStandbySpotInSphere
- FreeSignal
- GetAIObjectPosition
- GetAIParameter
- GetAlertStatus
- GetAlienApproachParams
- GetAnchor
- GetAttentionTargetDirection
- GetAttentionTargetDistance
- GetAttentionTargetEntity
- GetAttentionTargetOf
- GetAttentionTargetPosition
- GetAttentionTargetType
- GetAttentionTargetViewDirection
- GetBeaconPosition
- GetDirectAnchorPos
- GetDirLabelToPoint
- GetDistanceAlongPath
- GetEnclosingGenericShapeOfType
- GetEnclosingSpace
- GetExtraPriority
- GetFlyingVehicleFlockingPos
- GetFormationPointClass
- GetFormationPointPosition
- GetForwardDir
- GetGroupAveragePosition
- GetGroupCount
- GetGroupMember
- GetGroupOf
- GetGroupTacticPoint
- GetGroupTacticState
- GetGroupTarget
- GetGroupTargetCount
- GetHeliAdvancePoint
- GetHunterApproachParams
- GetInterestStatus
- GetLastSmartObjectExitPoint
- GetLastUsedSmartObject
- GetLeader
- GetNavigationType
- GetNearestEntitiesOfType
- GetNearestHidespot
- GetNearestPathOfTypeInRange
- GetNearestPointOnPath
- GetObjectRadius
- GetPathLoop
- GetPathSegNoOnPath
- GetPlayerThreatLevel
- GetPointOnPathBySegNo
- GetPredictedPosAlongPath
- GetProbableTargetPosition
- GetRefPointDirection
- GetRefPointPosition
- GetRefShapeName
- GetSpeciesOf
- GetStance
- GetSubTypeOf
- GetTargetType
- GetTotalLengthOfPath
- GetTypeOf
- GetUnitCount
- GetUnitInRank
- Hostile
- IntersectsForbidden
- IsAgentInTargetFOV
- IsEnabled
- IsFlightSpaceVoid
- IsFlightSpaceVoidByRadius
- IsGoalPipe
- IsMountedWeaponUsableWithTarget
- IsMoving
- IsPointInFlightRegion
- IsPointInsideGenericShape
- IsPointInWaterRegion
- IsPunchableObjectValid
- LogComment
- LogEvent
- LogProgress
- MarkAlienHideSpotUnreachable
- MeleePunchableObject
- ModifySmartObjectStates
- NotifyGroupTacticState
- NotifyReinfDone
- NotifySurpriseEntityAction
- OnLoad
- OnSave
- PlayReadabilitySound
- ProcessBalancedDamage
- PushGoal
- PushLabel
- RecComment
- RegisterDamageRegion
- RegisterWithAI
- RequestAttack
- ResetParameters
- ScaleFormation
- SetAdjustPath
- SetAssesmentMultiplier
- SetBeaconPosition
- SetCharacter
- SetCurrentHideObjectUnreachable
- SetExtraPriority
- SetForcedNavigation
- SetFormationUpdate
- SetFormationUpdateSight
- SetIgnorant
- SetInterestStatus
- SetLeader
- SetMinFireTime
- SetPathAttributeToFollow
- SetPathToFollow
- SetPFBlockerRadius
- SetPFProperties
- SetPointListToFollow
- SetRefPointAtDefensePos
- SetRefPointDirection
- SetRefPointPosition
- SetRefPointRadius
- SetRefpointToAlienHidespot
- SetRefpointToAnchor
- SetRefPointToGrenadeAvoidTarget
- SetRefpointToPunchableObject
- SetRefShapeName
- SetSmartObjectState
- SetSpeciesThreatMultiplier
- SetStance
- SetTerritoryShapeName
- SetUnitProperties
- Signal
- SmartObjectEvent
- SoundEvent
- UpTargetPriority
- VerifyAlienTarget
- Warning
CryAction
- ActivateEffect
- ActivateExtensionForGameObject
- BanPlayer
- BindGameObjectToNetwork
- CacheItemGeometry
- CacheItemSound
- ConnectToServer
- CreateGameObjectForEntity
- DontSyncPhysics
- ForceGameObjectUpdate
- GetPlayerList
- GetServer
- GetServerTime
- GetWaterInfo
- IsChannelOnHold
- IsChannelSpecial
- IsClient
- IsGameObjectProbablyVisible
- IsGameStarted
- IsImmersivenessEnabled
- IsServer
- LoadXML
- PauseGame
- Persistant2DText
- PersistantArrow
- PersistantLine
- PersistantSphere
- RefreshPings
- SaveXML
- SendGameplayEvent
- SetNetworkParent
Entity
- Activate
- ActivateOutput
- ActivatePlayerPhysics
- AddConstraint
- AddImpulse
- AttachChild
- AttachSurfaceEffect
- AwakeCharacterPhysics
- AwakeEnvironment
- AwakePhysics
- BreakToPieces
- CancelSubpipe
- CharacterUpdateAlways
- CharacterUpdateOnRender
- CheckCollisions
- CloneMaterial
- CopySlotTM
- CountLinks
- CreateBoneAttachment
- CreateCameraProxy
- CreateLink
- CreateSkinAttachment
- Damage
- DeleteThis
- DestroyAttachment
- DestroyPhysics
- DetachAll
- DetachThis
- DisableAnimationEvent
- DrawSlot
- EnableBoneAnimation
- EnableBoneAnimationAll
- EnableDecals
- EnableInheritXForm
- EnableMaterialLayer
- EnablePhysics
- EnableProceduralFacialAnimation
- FadeGlobalDensity
- ForceCharacterUpdate
- ForwardTriggerEventsTo
- FreeAllSlots
- FreeSlot
- GetAIName
- GetAngles
- GetAnimationLength
- GetAnimationTime
- GetArchetype
- GetAttachmentBone
- GetAttachmentCGF
- GetBoneAngularVelocity
- GetBoneDir
- GetBoneLocal
- GetBoneNameFromTable
- GetBonePos
- GetBoneVelocity
- GetCenterOfMassPos
- GetCharacter
- GetChild
- GetChildCount
- GetCurAnimation
- GetDirectionVector
- GetDistance
- GetExplosionImpulse
- GetExplosionObstruction
- GetFlags
- GetGravity
- GetHelperDir
- GetHelperPos
- GetLink
- GetLinkTarget
- GetLocalAngles
- GetLocalBBox
- GetLocalPos
- GetLocalScale
- GetLodRatio
- GetMass
- GetMaterial
- GetMaterialFloat
- GetMaterialVec3
- GetName
- GetParent
- GetParentSlot
- GetPhysicalStats
- GetPos
- GetProjectedWorldBBox
- GetScale
- GetSlotAngles
- GetSlotCount
- GetSlotHelperPos
- GetSlotPos
- GetSlotScale
- GetSlotWorldDir
- GetSlotWorldPos
- GetSpeed
- GetState
- GetSubmergedVolume
- GetTouchedPoint
- GetTouchedSurfaceID
- GetTriggerBBox
- GetUpdateRadius
- GetVelocity
- GetViewDistRatio
- GetVolume
- GetWorldAngles
- GetWorldBBox
- GetWorldPos
- GetWorldScale
- GotoState
- HasFlags
- Hide
- HideAllAttachments
- HideAttachment
- HideAttachmentMaster
- IgnorePhysicsUpdatesOnSlot
- InsertSubpipe
- IntersectRay
- InvalidateTrigger
- IsActive
- IsAnimationRunning
- IsColliding
- IsEntityInside
- IsEntityInsideArea
- IsHidden
- IsInState
- IsPointInsideArea
- IsSlotCharacter
- IsSlotGeometry
- IsSlotLight
- IsSlotParticleEmitter
- IsSlotValid
- IsUsingPipe
- KillTimer
- LoadCharacter
- LoadCloud
- LoadFogVolume
- LoadLight
- LoadObject
- LoadObjectLattice
- LoadParticleEffect
- LoadSubObject
- LoadVolumeObject
- MaterialFlashInvoke
- MultiplyWithSlotTM
- NetPresent
- NoExplosionCollision
- PauseSound
- Physicalize
- PhysicalizeSlot
- PlayFacialAnimation
- PlaySound
- PlaySoundEvent
- PlaySoundEventEx
- PreLoadParticleEffect
- ProcessBroadcastEvent
- RagDollize
- RedirectAnimationToLayer0
- RemoveAllLinks
- RemoveDecals
- RemoveLink
- RenderShadow
- ReplaceMaterial
- ResetAnimation
- ResetAttachment
- ResetMaterial
- ResetPhysics
- SelectPipe
- SetAIName
- SetAngles
- SetAnimationBlendOut
- SetAnimationEvent
- SetAnimationFlip
- SetAnimationKeyEvent
- SetAnimationSpeed
- SetAnimationTime
- SetAttachmentAngles
- SetAttachmentCGF
- SetAttachmentDir
- SetAttachmentEffect
- SetAttachmentLight
- SetAttachmentObject
- SetAttachmentPos
- SetCharacterPhysicParams
- SetCloudMovementProperties
- SetColliderMode
- SetDefaultIdleAnimations
- SetDirectionVector
- SetFlags
- SetLinkTarget
- SetLocalAngles
- SetLocalBBox
- SetLocalPos
- SetLocalScale
- SetLodRatio
- SetMaterial
- SetMaterialFloat
- SetMaterialVec3
- SetName
- SetParentSlot
- SetPhysicParams
- SetPos
- SetPublicParam
- SetRegisterInSectors
- SetScale
- SetScriptUpdateRate
- SetSlotAngles
- SetSlotPos
- SetSlotScale
- SetSlotWorldTM
- SetSoundEffectRadius
- SetSoundSphereSpec
- SetStateClientside
- SetStaticSound
- SetTimer
- SetTriggerBBox
- SetUpdatePolicy
- SetUpdateRadius
- SetViewDistRatio
- SetViewDistUnlimited
- SetVolumeObjectMovementProperties
- SetWorldAngles
- SetWorldPos
- SetWorldScale
- StartAnimation
- StopAllSounds
- StopAnimation
- StopSound
- ToGlobal
- ToLocal
- TriggerEvent
- UnSeenFrames
- UpdateAreas
- UpdateSlotPhysics
Game
- GetNumLightsActivated
- PauseGame
- PlayFlashAnim
- PlayVideo
- QueryBattleStatus
- ShowInGameMenu
- ShowMainMenu
HUD
- AddEntityToRadar
- BattleLogEvent
- DamageIndicator
- DisplayBigOverlayFlashMessage
- DrawStatusText
- EnteredBuyZone
- EnteredServiceZone
- FadeOutBigOverlayFlashMessage
- FakeDeath
- GetLastInGameSave
- GetMainObjective
- GetMapGridCoord
- GetObjectiveStatus
- HitIndicator
- OnItemBought
- OnPlayerVehicleBuilt
- OpenPDA
- RadarShowVehicleReady
- ReloadLevel
- ReloadLevelSavegame
- RemoveEntityFromRadar
- SetCaptureContested
- SetCaptureProgress
- SetMainObjective
- SetObjectiveEntity
- SetObjectiveStatus
- SetProgressBar
- SetUsability
- ShowCaptureProgress
- ShowConstructionProgress
- ShowDeathFX
- ShowKillZoneTime
- ShowReviveCycle
- ShowWarningMessage
- SpawnGroupInvalid
- StartPlayerFallAndPlay
- TacWarning
- UpdateBuyList
Script
- Debug
- DebugFull
- DumpLoadedScripts
- KillTimer
- LoadScript
- ReloadEntityScript
- ReloadScript
- ReloadScripts
- SetTimer
- SetTimerForFunction
- UnloadScript
Sound
- ActivateAudioDevice
- AddMusicMoodEvent
- AddToScaleGroup
- CreateListener
- DeactivateAudioDevice
- EndMusicTheme
- FXEnable
- GetDirectionalAttenuationMaxScale
- GetMusicMoods
- GetMusicStatus
- GetMusicThemes
- GetSoundLength
- GetSoundMoodFade
- GetSoundVolume
- IsInMusicMood
- IsInMusicTheme
- IsPlaying
- Load3DSound
- LoadMusic
- LoadSound
- LoadStreamSound
- Play
- PlayEx
- PlayPattern
- PlaySound
- PlayStinger
- Precache
- RegisterSoundMood
- RegisterWeightedEaxEnvironment
- RemoveFromScaleGroup
- RemoveListener
- SerializeMusicInternal
- SetDefaultMusicMood
- SetDirectionalAttenuation
- SetFadeTime
- SetFXSetParamEQ
- SetGroupScale
- SetListener
- SetMasterMusicEffectsVolume
- SetMasterVolumeScale
- SetMenuMusic
- SetMinMaxDistance
- SetMusicMood
- SetMusicTheme
- SetParameterValue
- SetPauseAllPlaying
- SetSoundFrequency
- SetSoundLoop
- SetSoundPaused
- SetSoundPitching
- SetSoundPosition
- SetSoundRatio
- SetSoundRelative
- SetSoundSpeed
- SetSoundVolume
- SetWeatherCondition
- Silence
- StopSound
- UnloadMusic
- UnloadProjects
- UnregisterSoundMood
- UnregisterWeightedEaxEnvironment
- UpdateSoundMood
- UpdateWeightedEaxEnvironment
System
- ActivateLight
- ActivatePortal
- AddCCommand
- ApplicationTest
- ApplyForceToEnvironment
- Break
- BrowseURL
- CheckHeapValid
- ClearConsole
- ClearKeyState
- CreateDownload
- DebugStats
- DeformTerrain
- DeformTerrainUsingMat
- Draw2DLine
- DrawImage
- DrawImageColor
- DrawImageColorCoords
- DrawImageCoords
- DrawLabel
- DrawLabelImage
- DrawLine
- DrawRectShader
- DrawText
- DrawTriStrip
- DumpMemoryCoverage
- DumpMemStats
- DumpMMStats
- DumpWinHeaps
- EnableHeatVision
- EnableMainView
- EnableOceanRendering
- EnumAAFormats
- EnumDisplayFormats
- Error
- ExecuteCommand
- GetConfigSpec
- GetCPUQuality
- GetCurrAsyncTime
- GetCurrTime
- GetCVar
- GetEntities
- GetEntitiesByClass
- GetEntitiesInSphere
- GetEntitiesInSphereByClass
- GetEntity
- GetEntityByName
- GetEntityClass
- GetEntityIdByName
- GetFrameID
- GetFrameTime
- GetGPUQuality
- GetHDRDynamicMultiplier
- GetLocalOSTime
- GetNearestEntityByClass
- GetOutdoorAmbientColor
- GetPhysicalEntitiesInBox
- GetPhysicalEntitiesInBoxByClass
- GetPostProcessFxParam
- GetScreenFx
- GetSkyColor
- GetSkyHighlight
- GetSunColor
- GetSurfaceTypeIdByName
- GetSurfaceTypeNameById
- GetSystemMem
- GetTerrainElevation
- GetVideoMem
- GetViewCameraAngles
- GetViewCameraDir
- GetViewCameraFov
- GetViewCameraPos
- GetWind
- IsDevModeEnable
- IsEditor
- IsHDRSupported
- IsMultiplayer
- IsPointIndoors
- IsPointVisible
- IsPS20Supported
- IsValidMapPos
- LoadFont
- LoadLocalizationXml
- Log
- LogAlways
- LogToConsole
- ProjectToScreen
- Quit
- QuitInNSeconds
- RayTraceCheck
- RayWorldIntersection
- RemoveEntity
- SaveConfiguration
- ScanDirectory
- ScreenToTexture
- SetBudget
- SetConsoleImage
- SetCVar
- SetGammaDelta
- SetHDRDynamicMultiplier
- SetOutdoorAmbientColor
- SetPostProcessFxParam
- SetScissor
- SetScreenFx
- SetScreenShader
- SetSkyColor
- SetSkyHighlight
- SetSunColor
- SetSystemShaderRenderFlags
- SetViewCameraFov
- SetVolumetricFogModifiers
- SetWaterVolumeOffset
- SetWind
- ShowConsole
- ShowDebugger
- SpawnEntity
- ViewDistanceGet
- ViewDistanceSet
- Warning
