0% found this document useful (0 votes)
15 views4 pages

Script Binding Updates for Version 1.0.0.0

Version 1.0.0.0 introduces several changes to functions including the removal of certain parameters and the addition of new ones for consistency and functionality. New functions have been added, and some existing functions have been renamed for clarity. Additionally, some functions have been removed and XML definitions have been mapped for better organization.

Uploaded by

paulozuchis10
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views4 pages

Script Binding Updates for Version 1.0.0.0

Version 1.0.0.0 introduces several changes to functions including the removal of certain parameters and the addition of new ones for consistency and functionality. New functions have been added, and some existing functions have been renamed for clarity. Additionally, some functions have been removed and XML definitions have been mapped for better organization.

Uploaded by

paulozuchis10
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

for detailed information about each function refer to the script binding / gdn

Version [Link]
changed
raycastAll, raycastClosest
removed "generateNormal" parameter, moved "maxDistance" before
"callback" for consistency

raycastAll, raycastClosest, overlapBox, overlapConvex, overlapSphere


removed "async" parameter, added dedicated functions with "Async"
suffix, see added section

addTrigger
added parameters "reportOnStay", "callbackFunction"
added return value "callbackId"; allows removal of a specific callback
via removeTrigger if multiple callbacks were added using "callbackFunction"
argument

removeTrigger
added parameter "callbackId" to remove specific callback if multiple
were added to a single shape

hasXMLProperty
now also works for xml attributes, not just elements
added return value "hasAttributeParentElement" which returns true of
the element of the given path exists, even if the attribute does not exist

saveScreenshot
added "success" return value

[Link]
now returns an array instead of individual values
requires all values to be numbers, fails otherwise. use [Link]
for non-number vectors

[Link]
returns table with input string as only element if nothing could be
split
returns "" for [Link]("") instead of nil
errors for nil input

[Link]
if the search pattern is '' (empty string) it will now return string
length + 1 instead of just string length

getRootNode (Editor)
now returns the root node of the scenegraph

setUserAttribute
changed 'type' argument from string to UserAttributeType enum

added
buildNavMeshFromContour
getNavMeshSurfaceArea
navMeshMerge
getIsTerrainDecal
setDecalCullingWorldProperties
getMaterialCustomParameter
setMaterialCustomParameter
getXMLElementName
getXMLNumOfChildren
getXMLNumOfElements
removeAllTriggers
setTextRotation
setTriggerReportStatics
overlapBoxAsync
overlapConvexAsync
overlapSphereAsync
createFacialAnimationPlayer
createPlaneShapeFrom2DContour
createShallowWaterSimulation
getAIHelperCollisionBoxInfo
getCompanionNodes
getDensityStatesAtWorldPos
getDensityTypeIndexAtWorldPos
getFogGroundLevelDensity
getFogMaxHeight
getGameBasePath
getIsTerrainDecal
getMaterialCustomParameter
getMaxNumSoftShadowSpotLights
getNavMeshSurfaceArea
getRainAmountMultiplier
getSafeFrameInsets
getScreenSpaceShadowsParameters
getShallowWaterSimulationOutputTexture
getSpotShadowAtlasSlotFactor
getSpotShadowDistanceFrequencyFactor
getSpotShadowFullResolutionPercentage
getSpotShadowMinimumConeAnglePercentage
getSpotShadowReducedConeAngleFactor
getSupportsLensFlareQuality
getTerrainFillMaterial
getToneMappingCurveBlackClip
getToneMappingCurveShoulder
getToneMappingCurveSlope
getToneMappingCurveToe
getToneMappingCurveWhiteClip
getVisibilityConditionDayOfYear
getVisibilityConditionMinuteOfDay
getVisibilityConditionRenderInvisible
getVisibilityConditionViewerSpacialityMask
getVisibilityConditionVisibleShaderParameter
getVisibilityConditionWeatherMask
getNumOfUserAttributes
getUserAttributeByIndex
getUserAttributeValueAndType
hasMergedShadow
isMergedShadowActive
mathQuaternionToEuler
mergeLightShadows
removeAllTriggers
setCompanionBehaviorMoveAllTo
setCompanionBehaviorMoveTo
setDecalCullingWorldProperties
setLensFlareQuality
setMaterialCustomParameter
setMergedShadowActive
setMergedShadowSettings
setPedestrianSystemTimeScale
setRainActiveDropsMultiplier
setRainAmountMultiplier
setRainBehindCameraBufferForMirrors
setRainCameraVelocityMultiplier
setRainDistributionPower
setRainMaxDropsMultiplier
setRainMostConcentratedDistance
setRainRandomOffset
setRainSpawnBoxParameters
setRainSpawnVelocity
setRainTurbulenceParameters
setRainWindForce
setScreenSpaceShadowsParameters
setShallowWaterSimulationGroundHeightTexture
setShallowWaterSimulationGroundHeightTextureFromTerrain
setShallowWaterSimulationParameters
setShallowWaterSimulationPerfectlyMatchedLayerParameters
setShallowWaterSimulationPhysicalGridSize
setShallowWaterSimulationWorldPosition
setSpotShadowAtlasSlotFactor
setSpotShadowDistanceFrequencyFactor
setSpotShadowFullResolutionPercentage
setSpotShadowMinimumConeAnglePercentage
setSpotShadowReducedConeAngleFactor
setTerrainFillMaterial
setTextRotation
setToneMappingCurveBlackClip
setToneMappingCurveShoulder
setToneMappingCurveSlope
setToneMappingCurveToe
setToneMappingCurveWhiteClip
setWorldDirection
shallowWaterSimulationAddWaterPlaneGeometry
shallowWaterSimulationPaintCustomObstacle
shallowWaterSimulationPaintDepthCircle
shallowWaterSimulationPaintDepthRect
shallowWaterSimulationPaintDepthSource
shallowWaterSimulationPaintVelocityCircle
shallowWaterSimulationPaintVelocityRect
shallowWaterSimulationRemoveWaterPlaneGeometry
shallowWaterSimulationResetSimulation
shallowWaterSimulationSetNumCustomObstacles
shallowWaterSimulationSetNumDepthSources
splitLightShadow
startDebugging
stopDebugging
updateShallowWaterSimulation

[Link]

renamed
getNumMaterials -> getNumOfMaterials
getNumUserAttributes -> getNumOfUserAttributes
getAtmosphereCornettAsymetryFactor ->
getAtmosphereCornettShrankAsymmetryFactor
[Link] -> [Link]

[Link] -> [Link]


[Link] -> [Link] (min argument has to be smaller than max
argument)
MathUtil.getHaveLineSegementsIntersection2D ->
[Link]

[Link] -> [Link]

[Link] -> [Link](str, n)


[Link] -> [Link]
[Link]
[Link]
[Link]
[Link] -> tbl[#tbl + 1] = val
[Link] -> val = [Link](tbl)
[Link] -> [Link]
[Link] -> [Link]

GuiUtils.get2DArray(str, defaultValueTable) -> [Link](str, 2) or


defaultValueTable
GuiUtils.get4DArray(str, defaultValueTable) -> [Link](str, 4) or
defaultValueTable

PolygonChain -> Polygon2D

g_gui:show*Dialog(...) -> *[Link](...)

removed
getFogPlaneHeight
getFogPlaneMieScale
setDropCountScale
FrameElement:registerControls (all gui elements with an id in xml config
are automatically added to the namespace)

other
map xml defintion
/mission/[Link] => /[Link]

You might also like