This is an old revision of the document!
$init_var
$$init_var
<-var
->var
-?var
--var
<-!
->!
-?!
--?
ClearLocals
NotPersist
Built in Function Callbacks
:Awake
:GameLoaded
:Destroyed
:Once
:BuildComplete
:_UICallback
Debug
DebugAllSp
Trace
TraceAll
TraceAllSp
Trace2
Trace3
Trace4
Trace5
TraceStack
ClearTraceLog
GetTimeString
CreateList
get set GlobalList
List
ListN
CreateListStartingSize
get set ListElement
set ListElementRPN
AppendToList
PushList
PopList
PrependToList
AppendStackToList
PrependStackToList
InsertListElement
RemoveListElement
get ListCount
ListContains
ReverseList
ClearList
RandInt
RandFloat
asint
asfloat
abs
round
neg
sign
sign0
clamp
clamp01
sin
cos
tan
asin
acos
atan
atan2
SignalGenerator
BallisticArcLateral
BallisticArcPos
pow
sqrt
log
ln
log10
min
max
floor
ceil
approximately
avg2
DistanceCell
Distance
ShortestAngle
VectorAngleCell
VectorAngle
RotateTowards
RotateTowardsCell
DistancePointLine
MoveTowards
InvocationCount
GetLastExecutionCount
IsMissionComplete
Self
ShowADAMessage
ShowADAMessageAtCell
ShowADAMessageAtUnit
IsADAMessageShowing
IsADAMessageRead
GetADALogOpen
SetADALogOpen
GetFinalDialogOpen
GetTerraformMenuOpen
GetMissionScanComplete
ShowGameMessage
CloseGameMessage
IsGameMessageShowing
SetGameMessageText
ShowUIIndicator
GetSoylentMode
SetSoylentMode
GetCanMoveUnits
SetCanMoveUnits
SetCModEditMenuName
SetCModPlayerMenuName
SetUnitsSelectable
SetCreeperGraphAvailable
SetDepartButtonAvailable
GetOpenBuildTab
GetOrbitalCount
SetOrbitalCount
GetEcoCounts
IsBuildUnitSelected
GetSelectedUnits
GetPause
SetPause
GetEditMode
Cancel
RegisterforMsg
DeregisterforMsg
SendMsg
StopConsole
GetGameUpdateCount
GetGameTickCount
GetMapSize
FC
UFC
IsV3InMap
IsV2InMap
GetRandMapCell
SetFieldRect
DamageMesh
FindUnitEnemy
GetNearestSpore
GetNearestAirSac
GetNearestSniperTarget
RefreshUnitLosCache
ApplyToDamageMap
RemoveUnitDamageMap
GenerateEnergy
SuppressTotemActivation
BounceFadeBlack
UseLegalUnitCells
SetLegalUnitCells
SetAllLegalUnitCells
GetUnitCanBuild
GetUnitCount
SetUnitCanBuild
GetUnitSelected
SetUnitSelected
GetUnitSelectable
SetUnitSelectable
SetUnitOutlineEnabled
SetUnitOutlineWidth
SetUnitOutlineColor
SetUnitOutlineMode
GetUnitConstructing
GetUnitConstructingData
GetUnitConnectedToRiftLab
GetUnitSuppressMovement
SetUnitSuppressMovement
GetUnitSpecifiedTarget
SetUnitSpecifiedTarget
ClearUnitSpecifiedTarget
SetUnitSpecifiedTargetShowPath
SetUnitSpecifiedTargetPathHeight
SetUnitSpecifiedTargetPathSourceOffset
SetUnitSpecifiedTargetOccupiesMap
SetUnitDebugText
CreateUnit
CreateUnitOnTerrain
DestroyUnit
CreateEffect
CreateMist
CreateMissile
CreateSniperShot
SetWallCharged
GetERNPortalEfficiency
GetRiftLab
GetFactory
GetERNPortal
GetMinerMode
GetUnitPosition
SetUnitPosition
GetUnitCell
SetUnitCell
GetUnitRotation
SetUnitRotation
GetUnitForward
SetUnitForward
RotateUnit
RotateUnitTowards
RotateUnitTowardsCell
GetUnitsInRange
GetUnitsByType
GetScriptVar
SetScriptVar
GetScript1Var
SetScript1Var
DamageUnit
GetUnitUIState
SetUnitUIState
GetUnitUIText
SetUnitUIText
GetUnitUIOptions
SetUnitUIOptions
GetUnitShieldRange
SetUnitShieldRange
DeployUnitShield
SetUnitShieldVisible
SetUnitPopupEnabled
SetUnitPopupText0
SetUnitPopupText1
MoveTowardsAndAvoid
MoveTowardsCellAndAvoid
GetUnitUpdateCount
GetUnitDestroyed
GetUnitEnabled
SetUnitEnabled
GetUnitArmed
SetUnitArmed
GetUnitSupplied
SetUnitSupplied
GetUnitHealth
SetUnitHealth
GetUnitMaxHealth
SetUnitMaxHealth
GetUnitAmmo
SetUnitAmmo
GetUnitMaxAmmo
SetUnitMaxAmmo
GetUnitCreeperDamages
GetUnitCanDestroy
SetUnitCanDestroy
SetUnitCreeperDamages
GetUnitAnticreeperDamages
SetUnitAnticreeperDamages
GetUnitFootprintResistsCreeperHeight
SetUnitFootprintResistsCreeperHeight
GetUnitConnectable
SetUnitConnectable
GetUnitRange
GetUnitRangeWithMods
SetUnitRange
GetUnitFireOffset
SetUnitFireOffset
GetUnitTargetOffset
SetUnitTargetOffset
GetUnitRequestPackets
SetUnitRequestPackets
GetUnitPacketRequestRate
SetUnitPacketRequestRate
GetUnitERNState
GetUnitSuppressCount
SetUnitSuppressCount
GetUnitOfficialName
AddAsWareHolder
RemoveAsWareHolder
GetUnitDestroyUnevenLand
SetUnitDestroyUnevenLand
GetUnitOccupiesLand
SetUnitOccupiesLand
GetUnitDamagedByCreeper
SetUnitDamagedByCreeper
GetUnitDamagedByAC
SetUnitDamagedByAC
GetUnitLOSEnabled
SetUnitLOSEnabled
GetObjActive
SetObjActive
GetObjPosition
SetObjPosition
GetObjRotation
SetObjRotation
GetObjScale
SetObjScale
GetObjColor
SetObjColor
GetObjForward
SetObjForward
RotateObj
RotateObjTowards
RotateObjTowardsCell
GetObjFacingAngle
GetObjFacingAngleCell
SetObjLightConeVisible
CreateTrail
DestroyTrail
SetObjText
SetObjTextColor
SetObjTextFontSize
SetObjTextBillboard
CreateBeam
DestroyBeam
SetBeamVisible
SetBeamColor
SetBeamBrightness
SetBeamWidth
SetBeamStart
SetBeamEnd
AttachBeam
UnattachBeam
SetBeamForceLocalEnd
IsBeam
DestroyAllBeams
DestroyAllAttachedBeams
GetPointerTerrainCoords
GetMouseButtonDown
GetMouseButtonUp
GetMouseButton
GetMouseScrollDelta
GetCameraPosition
SetCameraPosition
GetCameraRotation
SetCameraRotation
ResetCamera
GetCameraMode
SetRPLCam
SetRPLCamPosition
SetRPLCamRotation
RPLCamTween
RPLCamTweenLookAt
RPLCamCopyPosAndRot
SetMapPanEnabled
SetMapZoomEnabled
SetMapRotateEnabled
GetDefaultCameraPosition
GetKeyDown
GetKey
GetMappedKey
GetMappedKeyDown
ApplyTheme
GetThemeTexture
SetThemeTexture
GetThemeTextureScale
SetThemeTextureScale
GetThemeTextureDeTile
SetThemeTextureDeTile
GetThemeTextureLight
SetThemeTextureLight
GetThemeTextureLightBoost
SetThemeTextureLightBoost
GetThemeNormal
SetThemeNormal
GetThemeNormalAmt
SetThemeNormalAmt
GetThemeNormalScale
SetThemeNormalScale
GetThemeCliffTexture
SetThemeCliffTexture
GetThemeCliffScale
SetThemeCliffScale
GetThemeCliffLight
SetThemeCliffLight
GetThemeCliffLightBoost
SetThemeCliffLightBoost
GetThemeCliffNormal
SetThemeCliffNormal
GetThemeCliffNormalAmt
SetThemeCliffNormalAmt
GetThemeCliffNormalScale
SetThemeCliffNormalScale
asstring
Concat
Concat3
Concat4
Substring
StartsWith
EndsWith
Split
StringToList
StringLength
ToUpper
ToLower
StringReplace
CreateTable
GetGlobalTable
SetGlobalTable
GetTableElement
SetTableElement
SetTableElementRPN
RemoveTableElement
Table
TableN
GetTableKeys
GetTableValues
ShowRaster
SetRasterSize
ClearRaster
SetRaster
SetRasterC
RasterColor
BlitRaster
BlitFadeRaster
SetTimerObeyPause0
SetTimerObeyPause1
SetTimerObeyPause2
SetTimerObeyPause3
SetTimer0
SetTimer1
SetTimer2
SetTimer3
GetTimer0
GetTimer1
GetTimer2
GetTimer3
GetTerrain
GetTerrainVector
SetTerrain
GetTerrainSpecial
SetTerrainSpecial
SetTerrainInRange
SetTerrainLine
GetExactTerrain
GetExactTerrainWithShield
FloodFillTerrain
BounceTerrainCollision
BounceEdgeCollision
GetTerrainLOS
GetVoidHeight
SetVoidHeight
GetCreeperCutoff
SetCreeperCutoff
IsCreeperCutoff
GetCreeper
SetCreeper
AddCreeper
AddCreeperWithCap
SetCreeperInRange
AddCreeperInRange
AddCreeperWithCapInRange
ConvertCreeperToAC
ConvertACToCreeper
DamageCreeper
GetMaxCreeperCell
GetMinCreeperCell
GetMaxACCell
GetMinACCell
GetExactCreeperHeight
GetTotalCreeper
GetTotalAC
GetMaxCreeperCellWithDamage
GetMinCreeperCellWithDamage
ClipCreeperLine
GetFlow
SetFlow