aliens

Author Topic: [Solved] ufo map over the top of other terrain  (Read 2882 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1637
  • The Gate is open.
    • View Profile
[Solved] ufo map over the top of other terrain
« on: September 14, 2017, 06:08:03 am »
Dear Meridian,
when we use mapscript command addUfo, it places ufo map and group 1 terrain under it.
Is it possible to put ufo over other terrain block (let's say ruined house or so)? Because if we mark them as group 1, then our craft can use this block too.
« Last Edit: February 11, 2023, 04:22:25 pm by Meridian »

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: ufo map over the top of other terrain
« Reply #1 on: September 14, 2017, 02:10:31 pm »
You can put a blocks or groups definition with the addUFO command to use something other than group 1.

Offline Nord

  • Commander
  • *****
  • Posts: 1637
  • The Gate is open.
    • View Profile
Re: ufo map over the top of other terrain
« Reply #2 on: September 14, 2017, 02:35:35 pm »
Interesting. Like how?

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: ufo map over the top of other terrain
« Reply #3 on: September 14, 2017, 02:46:43 pm »
Code: [Select]
mapScripts:
  - type: WHATEVER_TERRAIN_YOURE_USING
    commands:
    - type: addUFO
      groups: [1, 17] # uses standard LZ map blocks or whatever blocks you decided were group 17
      # blocks: [11, 12, 13] # overrides groups, so I commented it out if you copy/paste. UFO LZ only uses blocks number 11, 12, and 13 from the list

This is standard OXC behavior by the way. You might need to increase the map height in alienDeployments so that the UFO can be placed if the LZ isn't the same height as the ground.  OXCE+ is necessary if you want to pick a single UFO by name or do some funkier stuff with stacking map blocks.
« Last Edit: September 14, 2017, 02:50:02 pm by ohartenstein23 »

Offline Nord

  • Commander
  • *****
  • Posts: 1637
  • The Gate is open.
    • View Profile
Re: ufo map over the top of other terrain
« Reply #4 on: September 14, 2017, 03:02:53 pm »
Thanks, i will try.

Upd.: it works, but now i need to remake some map tiles. Thanks again.
« Last Edit: September 14, 2017, 03:11:28 pm by Nord »