Page MenuHomeFeedback Tracker

setUnconscious has inconsistent side-switching behaviour
New, NormalPublic

Description

Sometimes using setUnconscious on a unit will result in its side being switched to civilian, sometimes it will not. This is not reflected in the return code of setUnconscious.

This appears to be related somehow to its combat status, however it is not directly related to the units combat mode.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Professional
Category
Scripting
Steps To Reproduce
  1. Start a new mission in editor
  2. Place a BLUFOR rifleman and give it a name, inf shall be used here.
  3. Place a zeus virtual unit and module, and connect the two.
  4. Start the mission
  5. Run the commands inf setUnconscious true; and side inf; in the developer console, and observe that the side of the unit is set to civilian.
  6. Run the command inf setUnconscious false; and wait for the unit to finish waking up.
  7. Place an OPFOR unit in front of the BLUFOR unit and wait for the BLUFOR unit to neutralise the OPFOR unit.
  8. Run the commands inf setUnconscious true; and side inf; again, and observe that this time the unit's side has remained west.

Event Timeline