Units (aliens and civilians) can now be marked as "
ignoredByAI".
This will make AI ignore them.
Currently it has the following effects:
1. aliens will not attack ignored civilians
2. civilians will not attack ignored aliens
3. civilians will not react to ignored aliens
(4. aliens can't react to civilians in OXC either, so this was not necessary to implement)
Tip for modders: you can use this for example to better implement a hostage rescue mission... enemies will not attack the hostages (at least not directly)
Example:
units:
- type: STR_HOSTAGE
ignoredByAI: true # default is false
PS: I tested the most common situations, but I can't guarantee that all situations are covered... should you notice that in some situations it's not working, report it