@jtff/miztemplate-lib 3.10.13 → 3.10.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -883,7 +883,7 @@ function SpawnRanges(param)
883
883
  local y = staticToSpawn.y
884
884
  local heading = staticToSpawn.heading
885
885
  local name = string.format("%s_%s_%i", subRangeName, staticNameToSpawn,index)
886
- local static = spawnStatic:SpawnFromPointVec2( POINT_VEC2:New( x, y ), heading, name )
886
+ local static = spawnStatic:SpawnFromCoordinate( COORDINATE:NewFromVec2( {x = x, y = y} ), heading, name )
887
887
  jtff_log.info(string.format("Static to spawn %s at %i,%i -> %s", static:GetDCSObject():getTypeName(), x, y, static:GetDCSObject():getName()),"RANGE")
888
888
  elseif (staticToSpawn.type ~= nil and staticToSpawn.category ~= nil) then
889
889
  local staticTypeToSpawn = string.format("%s", staticToSpawn.type)
@@ -892,7 +892,7 @@ function SpawnRanges(param)
892
892
  local y = staticToSpawn.y
893
893
  --spawnStatic = SPAWNSTATIC:NewFromType(staticTypeToSpawn, staticCategoryToSpawn)
894
894
  if (staticToSpawn.type == "big_smoke" and staticToSpawn.category == "Effects") then
895
- local landAltitude = POINT_VEC2:New( x, y ):GetLandHeight()
895
+ local landAltitude = COORDINATE:NewFromVec2( {x = x, y = y} ):GetAlt()
896
896
  trigger.action.effectSmokeBig({ x = x, y = landAltitude, z = y}, staticToSpawn.effectPreset or 1, staticToSpawn.effectTransparency or 1)
897
897
  else
898
898
  if (staticToSpawn.coalition ~= nil) then
@@ -912,7 +912,7 @@ function SpawnRanges(param)
912
912
  if (staticToSpawn.dead ~= nil) then
913
913
  spawnStatic:InitDead(staticToSpawn.dead)
914
914
  end
915
- local static = spawnStatic:SpawnFromPointVec2( POINT_VEC2:New( x, y ), heading, name )
915
+ local static = spawnStatic:SpawnFromCoordinate( COORDINATE:NewFromVec2({x = x, y = y} ), heading, name )
916
916
  jtff_log.info(string.format("Static type to spawn %s at %i,%i -> %s", static:GetDCSObject():getTypeName(), x, y, static:GetDCSObject():getName()),"RANGE")
917
917
  end
918
918
  else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.10.13",
3
+ "version": "3.10.14",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [