List of all Lua functions
From Data Realms Wiki
This page is out of date or contains incorrect information. Please help us by editing it. |
Syntax If you have no idea how to use Lua, start here.
| Datatypes Descriptions of the data types Lua uses.
| ||||
Functions Listing of known functions.
| Official Reference Raw output generated directly from Data's source.
|
Library Function Index
- Base Library
- _G.Clamp
- _G.CreateACDropShip
- _G.CreateACRocket
- _G.CreateACrab
- _G.CreateADoor
- _G.CreateAEmitter
- _G.CreateAHuman
- _G.CreateActor
- _G.CreateAttachable
- _G.CreateHDFirearm
- _G.CreateHeldDevice
- _G.CreateMOSParticle
- _G.CreateMOSRotating
- _G.CreateScene
- _G.CreateTDExplosive
- _G.CreateThrownDevice
- _G.EaseIn
- _G.EaseInOut
- _G.EaseOut
- _G.LERP
- _G.NormalRand
- _G.PosRand
- _G.RangeRand
- _G.SelectRand
- _G.ToACDropShip
- _G.ToACRocket
- _G.ToACrab
- _G.ToACraft
- _G.ToADoor
- _G.ToAEmitter
- _G.ToAHuman
- _G.ToActor
- _G.ToAttachable
- _G.ToGameActivity
- _G.ToHDFirearm
- _G.ToHeldDevice
- _G.ToMOSParticle
- _G.ToMOSRotating
- _G.ToMOSprite
- _G.ToMovableObject
- _G.ToScene
- _G.ToSceneObject
- _G.ToTDExplosive
- _G.ToThrownDevice
- _G.assert
- _G.class
- _G.collectgarbage
- _G.dofile
- _G.error
- _G.gcinfo
- _G.getfenv
- _G.getmetatable
- _G.ipairs
- _G.load
- _G.loadfile
- _G.loadstring
- _G.module
- _G.newproxy
- _G.next
- _G.pairs
- _G.pcall
- _G.print
- _G.rawequal
- _G.rawget
- _G.rawset
- _G.require
- _G.select
- _G.setfenv
- _G.setmetatable
- _G.tonumber
- _G.tostring
- _G.type
- _G.unpack
- _G.xpcall
- coroutine
- debug
- math
- package
- string
- table
Object Functions
- Activity
- Actor
- Actor:SetMovePathToUpdate
- Actor:IsPlayerControlled
- Actor:ClearAIWaypoints
- Actor:FlashWhite
- Actor:AddAIMOWaypoint
- Actor:IsInventoryEmpty
- Actor:SwapNextInventory
- Actor:AddHealth
- Actor:UpdateMovePath
- Actor:GetController
- Actor:AddToMovePathBeginning
- Actor:FacingAngle
- Actor:SetControllerMode
- Actor:AddInventoryItem
- Actor:GetLastAIWaypoint
- Actor:HasObject
- Actor:IsDead
- Actor:DropAllInventory
- Actor:SetAimAngle
- Actor:IsStatus
- Actor:HasObjectInGroup
- Actor:RemoveMovePathBeginning
- Actor:IsControllable
- Actor:IsWithinRange
- Actor:AddToMovePathEnd
- Actor:SwapPrevInventory
- Actor:AddAISceneWaypoint
- Actor:DrawWaypoints
- Actor:RemoveMovePathEnd
- Actor:ClearMovePath
- Actor:GetAimAngle
- Actor:SwapControllerModes
- AEmitter
- AHuman
- ACDropship
- None
- ACrab
- ACraft
- ACRocket
- Attachable
- AudioManager
- Box
- ConsoleManager
- Controller
- FrameManager
- FrameMan:ClearScreenText
- FrameMan:SetScreenText
- FrameMan:ShowPerformanceStats
- FrameMan:SaveBitmapToBMP
- FrameMan:ClearBackBuffer8
- FrameMan:ResetFrameTimer
- FrameMan:FadeInPalette
- FrameMan:FadeOutPalette
- FrameMan:DrawLine
- FrameMan:LoadPalette
- FrameMan:IsResettingRTE
- FrameMan:SaveScreenToBMP
- FrameMan:ToggleFullscreen
- FrameMan:ResetSplitScreens
- FrameMan:ResetRTE
- FrameMan:ClearBackBuffer32
- FrameMan:DrawText
- FrameMan:IsFullscreen
- HDFirearm
- HeldDevice
- MOPixel
- MOSRotating
- MOSRotating:IsOnScenePoint
- MOSRotating:MoveOutOfTerrain
- MOSRotating:AttachEmitter
- MOSRotating:ApplyImpulses
- MOSRotating:AddRecoil
- MOSRotating:SetRecoil
- MOSRotating:ApplyForces
- MOSRotating:ForceDeepCheck
- MOSRotating:GibThis
- MOSRotating:EnableDeepCheck
- MOSRotating:EraseFromTerrain
- MOSRotating:IsRecoiled
- MovableManager
- MovableObject
- MovableObject:ClearImpulseForces
- MovableObject:IsMissionCritical
- MovableObject:MoveOutOfTerrain
- MovableObject:IsGold
- MovableObject:AddImpulseForce
- MovableObject:IsSetToDelete
- MovableObject:IsActor
- MovableObject:IsDevice
- MovableObject:IsAtRest
- MovableObject:NotResting
- MovableObject:AddAbsImpulseForce
- MovableObject:ReloadScripts
- MovableObject:HasObject
- MovableObject:IsThrownDevice
- MovableObject:IsHeldDevice
- MovableObject:ClearForces
- MovableObject:SetWhichMOToNotHit
- MovableObject:IsGeneric
- MovableObject:HasObjectInGroup
- MovableObject:AddForce
- MovableObject:RestDetection
- MovableObject:GetAltitude
- MovableObject:AddAbsForce
- MovableObject:RotateOffset
- PresetManager
- Scene
- Scene:GetBuildBudget
- Scene:CalculatePath
- Scene:GetResidentBrain
- Scene:PlaceResidentBrains
- Scene:SetScheduledScan
- Scene:PathFindingUpdated
- Scene:SetResidentBrain
- Scene:SetBuildBudget
- Scene:GetArea
- Scene:PlaceResidentBrain
- Scene:HasArea
- Scene:ResetPathFinding
- Scene:UpdatePathFinding
- Scene:IsScanScheduled
- Scene:WithinArea
- Scene:SetArea
- Scene:RetrieveResidentBrains
- Scene:ClearPlacedObjectSet
- SceneManager
- SceneMan:GetScene
- SceneMan:LoadScene
- SceneMan:GetSceneDim
- SceneMan:GetSceneWidth
- SceneMan:GetSceneHeight
- SceneMan:SceneWrapsX
- SceneMan:SceneWrapsY
- SceneMan:GetOffset
- SceneMan:SetOffset
- SceneMan:SetOffsetX
- SceneMan:SetOffsetY
- SceneMan:GetScreenOcclusion
- SceneMan:SetScreenOcclusion
- SceneMan:GetTerrain
- SceneMan:SetLayerDrawMode
- SceneMan:GetTerrMatter
- SceneMan:GetMOIDPixel
- SceneMan:GetGlobalAcc
- SceneMan:GetOzPerKg
- SceneMan:GetKg
- SceneMan:SetLayerDrawMode
- SceneMan:SetScroll
- SceneMan:SetScrollTarget
- SceneMan:GetScrollTarget
- SceneMan:TargetDistanceScalar
- SceneMan:CheckOffset
- SceneMan:CastMaterialRay
- SceneMan:CastNotMaterialRay
- SceneMan:CastStrengthSumRay
- SceneMan:CastStrengthRay
- SceneMan:CastWeaknessRay
- SceneMan:CastMORay
- SceneMan:CastFindMORay
- SceneMan:CastObstacleRay
- SceneMan:GetLastRayHitPos
- SceneMan:FindAltitude
- SceneMan:MovePointToGround
- SceneMan:IsWithinBounds
- SceneMan:ForceBounds
- SceneMan:WrapPosition
- SceneMan:SnapPosition
- SceneMan:ShortestDistance
- SceneMan:ObscuredPoint
- SceneMan:RegisterPostEffect
- SceneMan:AddSceneObject
- SceneMan:ClearPostEffects
- SceneObject
- TDExplosive
- Timer
- Timer:IsPastSimMS
- Timer:LeftTillRealTimeLimitMS
- Timer:LeftTillSimTimeLimitS
- Timer:SetSimTimeLimitMS
- Timer:LeftTillRealTimeLimitS
- Timer:IsPastRealMS
- Timer:LeftTillSimMS
- Timer:SetSimTimeLimitS
- Timer:LeftTillSimTimeLimitMS
- Timer:SetRealTimeLimitMS
- Timer:IsPastRealTimeLimit
- Timer:LeftTillRealMS
- Timer:AlternateSim
- Timer:SetRealTimeLimitS
- Timer:AlternateReal
- TimerManager
- UInputManager
- UInputMan:SetMousePos
- UInputMan:DisableMouseMoving
- UInputMan:JoyDirectionPressed
- UInputMan:JoyButtonPressed
- UInputMan:ForceMouseWithinPlayerScreen
- UInputMan:AnalogMoveValues
- UInputMan:AnyInput
- UInputMan:AnalogAimValues
- UInputMan:AnalogAxisValue
- UInputMan:MouseButtonPressed
- UInputMan:MouseButtonHeld
- UInputMan:JoyButtonReleased
- UInputMan:AnyJoyPress
- UInputMan:AnalogStickValues
- UInputMan:MouseWheelMoved
- UInputMan:AnyJoyButtonPress
- UInputMan:AnyMouseButtonPress
- UInputMan:KeyHeld
- UInputMan:TrapMousePos
- UInputMan:AnyPress
- UInputMan:MouseUsedByPlayer
- UInputMan:SetMouseValueMagnitude
- UInputMan:AnyStartPress
- UInputMan:AnyJoyInput
- UInputMan:WhichJoyButtonPressed
- UInputMan:ElementHeld
- UInputMan:KeyReleased
- UInputMan:MouseButtonReleased
- UInputMan:JoyButtonHeld
- UInputMan:ElementPressed
- UInputMan:JoyDirectionReleased
- UInputMan:KeyPressed
- UInputMan:ElementReleased
- UInputMan:WhichKeyHeld
- UInputMan:ForceMouseWithinBox
- UInputMan:JoyDirectionHeld
- UInputMan:GetMouseMovement
- Vector
- Vector:SetMagnitude
- Vector:GetXFlipped
- Vector:GetYFlipped
- Vector:CapMagnitude
- Vector:FlipX
- Vector:FlipY
- Vector:IsZero
- Vector:IsOpposedTo
- Vector:Dot
- Vector:Cross
- Vector:Round
- Vector:ToHalf
- Vector:Floor
- Vector:Ceiling
- Vector:Normalize
- Vector:Perpendicularize
- Vector:Reset
- Vector:RadRotate
- Vector:DegRotate
- Vector:AbsRotateTo
- Vector:SetXY