Author Topic: [Answered] Not spawning soldiers in forbidden armors  (Read 3212 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
[Answered] Not spawning soldiers in forbidden armors
« on: July 05, 2017, 06:57:25 pm »
Hello again.
Small question, dont know about OXCE or OXCE+ it is.

If we want our units to change their armor we use
Code: [Select]
startingConditions:
...
    defaultArmor:
      STR_SOLDIER:
        STR_NONE_ARMOR_UC: 100
    allowedArmors:
      - STR_MAGNETIC_ION_ARMOR_UC
So all except mag-ion will transform.
But if we dont want units in other types of armor to spawn at all, what we do?
« Last Edit: February 11, 2023, 04:15:40 pm by Meridian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: Non-allowed armor
« Reply #1 on: July 05, 2017, 07:09:08 pm »
But if we dont want units in other types of armor to spawn at all, what we do?

That's currently not possible.
All soldiers will always spawn.

It's easy to make them not spawn, but how would you explain this to the player?
And what if nobody spawns? Do you just lose a mission?

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Re: Non-allowed armor
« Reply #2 on: July 05, 2017, 07:29:04 pm »
Yup, only way i see is geoscape message, like "Your squad suits doesnt fit that mission"...