OpenXcom Forum

Modding => Help => Topic started by: Solarius Scorch on March 23, 2020, 09:41:38 pm

Title: How to make a UFO fly from a random point on the globe to Alien Base?
Post by: Solarius Scorch on March 23, 2020, 09:41:38 pm
We're trying to make an alien mission which works like this:
- runs from a missionScript (to ensure that we can use triggers)
- spawns a certain UFO somewhere on the globe, like any normal UFO
- the UFO flies to an alien base (preferably a custom alien base type we already have in the mod, but standard alien base would be OK too)
- the UFO disappears on contact with the target alien base
- profit.

Also, I would like to know how to make a variant of the above, except the UFO doesn't disappear after reaching the base but lands normally and then takes off.

Help would be appreciated.
Title: Re: How to make a UFO fly from a random point on the globe to Alien Base?
Post by: Meridian on March 23, 2020, 09:58:45 pm
Currently neither of them is possible.
Title: Re: How to make a UFO fly from a random point on the globe to Alien Base?
Post by: Solarius Scorch on March 23, 2020, 10:00:30 pm
Oh well. Thank you, Meridian!
Title: Re: How to make a UFO fly from a random point on the globe to Alien Base?
Post by: Nord on March 24, 2020, 04:17:15 am
We're trying to make an alien mission which works like this:
- runs from a missionScript (to ensure that we can use triggers)
- spawns a certain UFO somewhere on the globe, like any normal UFO
- the UFO flies to an alien base (preferably a custom alien base type we already have in the mod, but standard alien base would be OK too)
- the UFO disappears on contact with the target alien base
- profit.

Also, I would like to know how to make a variant of the above, except the UFO doesn't disappear after reaching the base but lands normally and then takes off.

Help would be appreciated.
This is almost perfectly described supply mission. One difference - missionscripts. But instead of that you can change base to other type (with proper supply mission) via alienBaseUpgrades. fast disappear can be done by ufotrajectories.
Title: Re: How to make a UFO fly from a random point on the globe to Alien Base?
Post by: Solarius Scorch on March 24, 2020, 12:54:43 pm
Thanks, but the point is that this mission is supposed to happen between certain points in the research tree. We can't really fiddle with the base type, because we're already using this for something else.