Object Protect goal

Issue #208 resolved
Justagai created an issue

The value where the "to be destroyed" is set in a mission file, can also be set to be a protect goal. Here are the range of values that indicate which numbers related to said goal.

0-3: None 4-7: To be destroyed 8-11: To be protected 12-15: To be destroyed 16+: None

Comments (2)

  1. David Esparza Guerrero

    I assume that it works like this: The Layout value in the mission file is an int16 with bits numbered like this [16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1].

    • Bits 1 and 2 are used for Layout with values: 00=Flat, 01=On edge, 10=Broadside, and 11=Scattered.

    • If bit 3 is on, then the object is to be destroyed.

    • If bit 4 is on, then the object is to be protected.

    • If both 3 and 4 are on, then 3 has priority.

    • Bits 5 and up have no meaning.

  2. Log in to comment