OpenXcom Forum

Modding => OpenXcom Extended => OXCE Support => Topic started by: Nord on September 14, 2017, 06:08:03 am

Title: [Solved] ufo map over the top of other terrain
Post by: Nord 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.
Title: Re: ufo map over the top of other terrain
Post by: ohartenstein23 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.
Title: Re: ufo map over the top of other terrain
Post by: Nord on September 14, 2017, 02:35:35 pm
Interesting. Like how?
Title: Re: ufo map over the top of other terrain
Post by: ohartenstein23 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.
Title: Re: ufo map over the top of other terrain
Post by: Nord 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.