Page MenuHomeFeedback Tracker

Setting initial player lead group combat mode via waypoint or unit's init => problem with scripting command combatMode
Closed, ResolvedPublic

Description

If you set a player lead group's combatMode to for example "BLUE", "GREEN" or "WHITE" either in a unit's init field on in a 'initial' waypoint the player also get's set into this mode, and after that combatMode will always return that set mode for the group no matter what you order the AI to change into.

Of course the AI will act as instructed and will fire at will etc but the scripting command combatMode will return the combat mode the player has been stuck into..

The only way to fix this is to set the group's combatmode via scripting again. {F27014}

Details

Legacy ID
1295837655
Severity
None
Resolution
Open
Reproducibility
Always
Category
Engine
Steps To Reproduce
  1. Download the attached repro
  2. The combat mode set for the group is "GREEN", indicated by the silent hint
  3. Order the AI to open fire or something, notice how the hint still indicates "GREEN" no matter what (also note how the 'hold fire' icon on player persists in the group icon row)
  4. use radio 0-0-0 and see the hint now INDICATE "YELLOW" and the 'hold fire' icon disappears for the player.

Event Timeline

h- edited Steps To Reproduce. (Show Details)Sep 11 2015, 1:33 PM
h- set Category to Engine.
h- set Reproducibility to Always.
h- set Severity to None.
h- set Resolution to Open.
h- set Legacy ID to 1295837655.May 8 2016, 12:41 PM
dedmen closed this task as Resolved.Feb 22 2021, 12:45 PM
dedmen claimed this task.
dedmen added a subscriber: dedmen.